mirror of https://github.com/zulip/zulip.git
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:
parent
30c7bdf018
commit
12bb641e9f
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue