Fade new messages that arrive while compose is open.

This might need to change after we merge zev's message list branch, but
it fixes the bug and performs well and isn't a lot of code.

And it has the nice property that it'll only fade messages within the
neighbors range, so there's no need to update the unfading code to
support this.

(imported from commit c562d7335bc5635c960321e1451e4ba0f4452ee9)
This commit is contained in:
Tim Abbott 2013-03-04 10:59:09 -05:00
parent 30c7bdf018
commit 12bb641e9f
2 changed files with 9 additions and 0 deletions

View File

@ -122,6 +122,14 @@ exports.unfade_messages = function () {
ui.enable_floating_recipient_bar();
};
exports.update_faded_messages = function () {
if (faded_to === undefined) {
return;
}
fade_around(faded_to);
};
exports.start = function (msg_type, opts) {
if (reload.is_in_progress()) {
return;

View File

@ -680,6 +680,7 @@ function get_updates(options) {
add_messages(data.messages, all_msg_list, {append_to_table: false});
add_messages(data.messages, home_msg_list);
notifications.received_messages(data.messages);
compose.update_faded_messages();
}
if (data.zephyr_mirror_active === false) {