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:
commit
9fee9bc613
|
@ -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