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);
|
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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user