Merge pull request #564 in FS/freeswitch from ~ANDCOFFEECODE/freeswitch:bugfix/FS-8365-vc-does-not-clear-new-chat to master

* commit '547d5357fa738090bc48db866f27eedc7cd0ee49':
  FS-8365 [verto_communicator] fixed chat counter to increment only when the active pane is not the chat itself.
This commit is contained in:
Ítalo Rossi 2015-10-21 11:56:09 -05:00
commit 9fee9bc613

View File

@ -39,8 +39,8 @@
console.log('chat.newMessage', data); console.log('chat.newMessage', data);
$scope.$apply(function() { $scope.$apply(function() {
$scope.messages.push(data); $scope.messages.push(data);
if (data.from != verto.data.name && (!$scope.chatStatus || if (data.from != verto.data.name &&
$scope.activePane != 'chat')) { (!$scope.chatStatus && $scope.activePane != 'chat')) {
++$rootScope.chat_counter; ++$rootScope.chat_counter;
} }
$timeout(function() { $timeout(function() {