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:
Steve Howell
2017-01-23 15:44:08 -08:00
committed by showell
parent 1e9baf8ee0
commit 01aad70910
2 changed files with 11 additions and 1 deletions

View File

@@ -64,6 +64,14 @@ people.add({
email: 'cordelia@zulip.com',
});
people.add({
full_name: 'Leo',
user_id: 102,
email: 'leo@zulip.com',
});
people.initialize_current_user(101);
var stream_data = global.stream_data;
var denmark = {
subscribed: false,