compose: Re-open the compose editor after restoring a draft.

Fix #5951.
This commit is contained in:
Marco Burstein
2017-12-18 18:34:55 -08:00
committed by showell
parent 6fc50fa21a
commit 096088969d
2 changed files with 13 additions and 0 deletions

View File

@@ -143,6 +143,8 @@ exports.restore_draft = function (draft_id) {
overlays.close_overlay("drafts");
compose_fade.clear_compose();
compose.clear_preview_area();
if (draft.type === "stream" && draft.stream === "") {
draft_copy.subject = "";
}