Only manually update fading if the compose box is staying open

(compose.start() and compose.cancel() both update the fading themselves)

(imported from commit 63ce2f54106c8cce2306b0c1f3ce56e06f24235f)
This commit is contained in:
Jeff Arnold
2013-11-27 14:01:58 -05:00
parent 2cd7c35875
commit ec56e946a7

View File

@@ -117,6 +117,9 @@ exports.activate = function (operators, opts) {
if (!had_message_content) {
compose.cancel();
}
else {
compose_fade.update_message_list();
}
opts = _.defaults({}, opts, {
then_select_id: home_msg_list.selected_id(),
@@ -273,8 +276,6 @@ exports.activate = function (operators, opts) {
}
}
compose_fade.update_message_list();
$(document).trigger($.Event('narrow_activated.zulip', {msg_list: narrowed_msg_list,
filter: current_filter,
trigger: opts.trigger}));