FS-8365 [verto_communicator] fixed chat counter to increment only when the active pane is not the chat itself.
This commit is contained in:
parent
95b0f0c88a
commit
547d5357fa
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue