From e2fdaf61c9c024be3783835c7fd7233efe30ae74 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sun, 23 Mar 2014 00:35:56 +0400 Subject: [PATCH] Fixed contacts search on empty dialogs --- app/js/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 3b21bc5f..a8f27f2d 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -303,7 +303,7 @@ angular.module('myApp.controllers', []) $scope.$broadcast('ui_dialogs_change'); if (!$scope.search.query) { - AppMessagesManager.getDialogs('', maxID); + AppMessagesManager.getDialogs('', maxID, 100); } }, function (error) { @@ -316,7 +316,7 @@ angular.module('myApp.controllers', []) } function showMoreDialogs () { - if (!hasMore && contactsShown || !offset) { + if (contactsShown && (!hasMore || !offset)) { return; }