From 547d5357fa738090bc48db866f27eedc7cd0ee49 Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Wed, 21 Oct 2015 10:13:30 -0300 Subject: [PATCH] FS-8365 [verto_communicator] fixed chat counter to increment only when the active pane is not the chat itself. --- .../src/vertoControllers/controllers/ChatController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js index cd8fff2021..ca20d6db6f 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js @@ -39,8 +39,8 @@ console.log('chat.newMessage', data); $scope.$apply(function() { $scope.messages.push(data); - if (data.from != verto.data.name && (!$scope.chatStatus || - $scope.activePane != 'chat')) { + if (data.from != verto.data.name && + (!$scope.chatStatus && $scope.activePane != 'chat')) { ++$rootScope.chat_counter; } $timeout(function() {