提交 547d5357 authored 作者: Bruno Dias's avatar Bruno Dias

FS-8365 [verto_communicator] fixed chat counter to increment only when the…

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