buddy_list: Do not fade current user in PMs.

Fixes a bug where we would fade out our own name because it wasn't in
selected as a recipient in the compose box, when making a PM.
This commit is contained in:
YashRE42 2019-07-18 08:53:05 +05:30 committed by Tim Abbott
parent 9f5fca5579
commit 0fa90162f9
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function update_user_row_when_fading(li, conf) {
var email = people.get_person_from_user_id(user_id).email; var email = people.get_person_from_user_id(user_id).email;
var would_receive = exports.would_receive_message(email); var would_receive = exports.would_receive_message(email);
if (would_receive) { if (would_receive || people.is_my_user_id(user_id)) {
conf.unfade(li); conf.unfade(li);
} else { } else {
conf.fade(li); conf.fade(li);