From f1cb4d3957ab06326ec4357f1f0a04c825cf40ee Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 19 Sep 2014 19:54:13 +0400 Subject: [PATCH] Fixed unread after --- app/js/controllers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index d0490d79..b777c90d 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -1064,12 +1064,11 @@ angular.module('myApp.controllers', ['myApp.i18n']) if (historyResult.unreadOffset) { $scope.historyUnreadAfter = historyResult.history[historyResult.unreadOffset - 1]; - $scope.$broadcast('messages_unread_after'); } else if ($scope.historyUnreadAfter) { delete $scope.historyUnreadAfter; - $scope.$broadcast('messages_unread_after'); } + $scope.$broadcast('messages_unread_after'); onContentLoaded(function () { $scope.$broadcast('messages_focus', $scope.curDialog.messageID || 0); });