Be more robust when creating names for the subscriber lists

(imported from commit fca2c0f2d9dcee4830394c9be5b08ce81379e4a6)
This commit is contained in:
Zev Benjamin 2013-01-15 17:28:58 -05:00
parent a15a1702e1
commit 14cccd9787

View File

@ -343,6 +343,10 @@ $(function () {
data: {stream: stream},
success: function (data) {
var subscribers = $.map(data.subscribers, function (elem) {
var person = people_dict[elem];
if (person === undefined) {
return elem;
}
return people_dict[elem].full_name + ' <' + elem + '>';
});
$.each(subscribers.sort(), function (idx, elem) {