Skip to content

Commit 1303213

Browse files
committed
Always lookup buddyData as locally stored buddy can be undefined.
1 parent 5fa834f commit 1303213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/js/directives/chat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro
365365
});
366366
};
367367
subscope.removeContact = function() {
368-
contacts.remove(buddy.contact.Userid);
368+
contacts.remove(buddyData.lookup(id).contact.Userid);
369369
};
370370
subscope.updateContactStatus = function(event, data) {
371371
var userid = buddy && buddy.session && buddy.session.Userid;

0 commit comments

Comments
 (0)