From 21f641f1456aeac952d35dd5615fb57c3196b3f1 Mon Sep 17 00:00:00 2001 From: Evan Theurer Date: Thu, 30 Jul 2015 15:41:08 +0200 Subject: [PATCH] Update ability to add contact on authenticationChanged. --- static/js/directives/chat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/directives/chat.js b/static/js/directives/chat.js index 37ba46af..a61157cf 100644 --- a/static/js/directives/chat.js +++ b/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; }; handleContactFunctionality(); + appData.e.on('authenticationChanged', function() { + handleContactFunctionality(); + }); if (!subscope.isgroupchat) { buddyData.push(id); }