mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Always add messageds from get_updates to the home and all lists
(imported from commit d922fa2d80b339ef0f6b76c83d30a7c0fcc29888)
This commit is contained in:
@@ -658,15 +658,9 @@ function get_updates(options) {
|
|||||||
if (data.messages.length !== 0) {
|
if (data.messages.length !== 0) {
|
||||||
if (narrow.active()) {
|
if (narrow.active()) {
|
||||||
add_messages(data.messages, narrowed_msg_list);
|
add_messages(data.messages, narrowed_msg_list);
|
||||||
} else {
|
|
||||||
// Only add to all_msg_list if we're receiving non-narrowed messages,
|
|
||||||
// because they may be duplicates of all_msg_list or sparsely populated
|
|
||||||
// message ranges (e.g. filtered by stream)
|
|
||||||
// TODO intelligently handle all_msg_list so that we can support deduping
|
|
||||||
// and arbitrary messages
|
|
||||||
add_messages(data.messages, all_msg_list, {append_to_table: false});
|
|
||||||
add_messages(data.messages, home_msg_list);
|
|
||||||
}
|
}
|
||||||
|
add_messages(data.messages, all_msg_list, {append_to_table: false});
|
||||||
|
add_messages(data.messages, home_msg_list);
|
||||||
notifications.received_messages(data.messages);
|
notifications.received_messages(data.messages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user