mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
bug fix: Fix recent regression with at-mentioning.
One of my commits from yesterday erroneously set the "mentioned" flag on messages that weren't mentioning the current user, so you would get the pink/salmon background when you sent at-mentions to other people. Now we check the user_id before setting the flag.
This commit is contained in:
@@ -46,7 +46,9 @@ exports.apply_markdown = function apply_markdown(message) {
|
||||
userMentionHandler: function (name) {
|
||||
var person = people.get_by_name(name);
|
||||
if (person !== undefined) {
|
||||
push_uniquely(message.flags, 'mentioned');
|
||||
if (people.is_my_user_id(person.user_id)) {
|
||||
push_uniquely(message.flags, 'mentioned');
|
||||
}
|
||||
return '<span class="user-mention" data-user-id="' + person.user_id + '">' +
|
||||
'@' + person.full_name +
|
||||
'</span>';
|
||||
|
||||
Reference in New Issue
Block a user