Live-update PM list for full-name changes.

We now trigger an event in user_events.js, and we dynamically
build the list of names in pm_list.js by calling out to
people.get_recipients().

We have a few variations of functions that build lists of names
for huddles, which should be cleaned up eventually.  They are
called at different times in the code path, so the different
functions, while doing mostly the same thing, start with different
data sources.
This commit is contained in:
Steve Howell
2017-01-25 07:23:22 -08:00
committed by showell
parent f836ae0dfb
commit 373c8a0bb5
6 changed files with 33 additions and 4 deletions

View File

@@ -92,9 +92,9 @@ exports._build_private_messages_list = function (active_conversation, max_privat
}
_.each(private_messages, function (private_message_obj, idx) {
var recipients_string = private_message_obj.display_reply_to;
var user_ids_string = private_message_obj.user_ids_string;
var reply_to = people.user_ids_string_to_emails_string(user_ids_string);
var recipients_string = people.get_recipients(user_ids_string);
var num_unread = unread.num_unread_for_person(user_ids_string);