提交 9fee9bc6 authored 作者: Ítalo Rossi's avatar Ítalo Rossi

Merge pull request #564 in FS/freeswitch from…

Merge pull request #564 in FS/freeswitch from ~ANDCOFFEECODE/freeswitch:bugfix/FS-8365-vc-does-not-clear-new-chat to master

* commit '547d5357':
  FS-8365 [verto_communicator] fixed chat counter to increment only when the active pane is not the chat itself.
...@@ -39,8 +39,8 @@ ...@@ -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() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论