FS-8365 [verto_communicator] fixed chat counter to increment only when the active pane is not the chat itself.

This commit is contained in:
Bruno Dias 2015-10-21 10:13:30 -03:00
parent 95b0f0c88a
commit 547d5357fa
1 changed files with 2 additions and 2 deletions

View 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() {