]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8365 [verto_communicator] fixed chat counter to increment only when the active...
authorBruno Dias <andcoffeecode@gmail.com>
Wed, 21 Oct 2015 13:13:30 +0000 (10:13 -0300)
committerBruno Dias <andcoffeecode@gmail.com>
Wed, 21 Oct 2015 13:13:30 +0000 (10:13 -0300)
html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js

index cd8fff202143b897f3c398732ce9e5d41be0633d..ca20d6db6f4ee7bd7371666398e2f628e007803a 100644 (file)
@@ -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() {