Browse Source

Always lookup buddyData as locally stored buddy can be undefined.

pull/151/head
Evan Theurer 10 years ago
parent
commit
130321373f
  1. 2
      static/js/directives/chat.js

2
static/js/directives/chat.js

@ -365,7 +365,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro @@ -365,7 +365,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro
});
};
subscope.removeContact = function() {
contacts.remove(buddy.contact.Userid);
contacts.remove(buddyData.lookup(id).contact.Userid);
};
subscope.updateContactStatus = function(event, data) {
var userid = buddy && buddy.session && buddy.session.Userid;

Loading…
Cancel
Save