Live update full names for senders in the message pane.

Note that this only works for people who are currently logged in.
Folks that log in after you may pick up the old full name from
the message.  (I'll address this in a separate commit.)
This commit is contained in:
Steve Howell
2017-01-24 10:12:21 -08:00
committed by showell
parent a52cd99452
commit 97243dcd52
4 changed files with 30 additions and 2 deletions

View File

@@ -8,6 +8,12 @@ exports.update_stream_name = function (stream_id, new_name) {
});
};
exports.update_user_full_name = function (user_id, full_name) {
_.each([home_msg_list, current_msg_list, message_list.all], function (list) {
list.update_user_full_name(user_id, full_name);
});
};
exports.update_avatar = function (person) {
var sent_by_me = people.is_my_user_id(person.user_id);
var url = person.avatar_url;