Browse Source

Update ability to add contact on authenticationChanged.

pull/151/head
Evan Theurer 11 years ago
parent
commit
21f641f145
  1. 3
      static/js/directives/chat.js

3
static/js/directives/chat.js

@ -227,6 +227,9 @@ define(['jquery', 'underscore', 'text!partials/chat.html', 'text!partials/chatro
subscope.contact.showContact = !subscope.isgroupchat && buddyId; subscope.contact.showContact = !subscope.isgroupchat && buddyId;
}; };
handleContactFunctionality(); handleContactFunctionality();
appData.e.on('authenticationChanged', function() {
handleContactFunctionality();
});
if (!subscope.isgroupchat) { if (!subscope.isgroupchat) {
buddyData.push(id); buddyData.push(id);
} }

Loading…
Cancel
Save