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:
Steve Howell 2014-01-08 15:20:09 -05:00 committed by Waseem Daher
parent 3e48b4fd95
commit 117915edc5
1 changed files with 2 additions and 0 deletions

View File

@ -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);