mirror of https://github.com/zulip/zulip.git
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:
parent
187ec3a922
commit
f81f9a26e8
|
@ -125,9 +125,7 @@ exports.update_messages = function update_messages(events) {
|
|||
}
|
||||
msgs_to_rerender.push(msg);
|
||||
|
||||
msg.alerted = event.flags.indexOf("has_alert_word") !== -1;
|
||||
msg.mentioned = event.flags.indexOf("mentioned") !== -1 ||
|
||||
event.flags.indexOf("wildcard_mentioned") !== -1;
|
||||
message_store.set_message_booleans(msg, event.flags);
|
||||
|
||||
condense.un_cache_message_content_height(msg.id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue