mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Call message.set_message_booleans() in update_messages().
When we learn about updated message, a bunch of flag/boolean
fields concern us:
starred
mentioned
alerted
is_me_message
We now set booleans consistently with how we set new incoming
messages.
This commit is contained in:
@@ -125,9 +125,7 @@ exports.update_messages = function update_messages(events) {
|
|||||||
}
|
}
|
||||||
msgs_to_rerender.push(msg);
|
msgs_to_rerender.push(msg);
|
||||||
|
|
||||||
msg.alerted = event.flags.indexOf("has_alert_word") !== -1;
|
message_store.set_message_booleans(msg, event.flags);
|
||||||
msg.mentioned = event.flags.indexOf("mentioned") !== -1 ||
|
|
||||||
event.flags.indexOf("wildcard_mentioned") !== -1;
|
|
||||||
|
|
||||||
condense.un_cache_message_content_height(msg.id);
|
condense.un_cache_message_content_height(msg.id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user