mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
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…
x
Reference in New Issue
Block a user