mirror of https://github.com/zulip/zulip.git
Properly render mentions after message edits.
In update_messages() in zulip.js we now set the mentioned flag on incoming messages, so that they render properly with the salmon background. (imported from commit 6df523edbcd567bf8e1fde144f65f35a00548c4f)
This commit is contained in:
parent
3e48b4fd95
commit
117915edc5
|
@ -718,6 +718,8 @@ function update_messages(events) {
|
|||
}
|
||||
|
||||
msg.alerted = event.flags.indexOf("has_alert_word") !== -1;
|
||||
msg.mentioned = event.flags.indexOf("mentioned") !== -1 ||
|
||||
event.flags.indexOf("wildcard_mentioned") !== -1;
|
||||
|
||||
ui.un_cache_message_content_height(msg.id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue