Browse Source

Make sure to show buddies which never set a status.

pull/156/merge
Simon Eisenmann 11 years ago
parent
commit
0e656d2add
  1. 6
      static/js/services/buddylist.js

6
static/js/services/buddylist.js

@ -383,6 +383,10 @@ define(['jquery', 'angular', 'underscore', 'modernizr', 'avltree', 'text!partial
Buddylist.prototype.setDisplay = function(id, scope, data, queueName) { Buddylist.prototype.setDisplay = function(id, scope, data, queueName) {
var status = data.Status; var status = data.Status;
if (!status) {
status = {}; // Make sure to show buddies which never set a status.
}
var display = scope.display; var display = scope.display;
// Set display.name. // Set display.name.
display.displayName = status.displayName; display.displayName = status.displayName;
@ -501,7 +505,7 @@ define(['jquery', 'angular', 'underscore', 'modernizr', 'avltree', 'text!partial
scope = newscope; scope = newscope;
} }
}, this)); }, this));
if (sessionData && sessionData.Status) { if (sessionData) {
this.setDisplay(id, scope, sessionData, "joined"); this.setDisplay(id, scope, sessionData, "joined");
} else if (!noApply) { } else if (!noApply) {
scope.$apply(); scope.$apply();

Loading…
Cancel
Save