From 53bf2858006132fa9dc0c3c0e80d7be08d8c52b6 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 19 Jan 2016 23:33:51 +0300 Subject: [PATCH] Fixed glitch on jump --- app/js/controllers.js | 2 +- app/js/directives.js | 1 - app/partials/desktop/im.html | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index d3dc45b1..2964f879 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -1193,7 +1193,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) $scope.historyState.typing.splice(0, $scope.historyState.typing.length); $scope.$broadcast('ui_peer_change'); $scope.$broadcast('ui_history_change'); - safeReplaceObject($scope.state, {loaded: true, empty: !peerHistory.messages.length}); + safeReplaceObject($scope.state, {loaded: true, empty: !peerHistory.messages.length, mayBeHasMore: true}); updateBotActions(); updateChannelActions(); diff --git a/app/js/directives.js b/app/js/directives.js index 09f440d0..e8496750 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -1412,7 +1412,6 @@ angular.module('myApp.directives', ['myApp.filters']) $(historyMessagesEl).css({marginTop: 0}); var marginTop = scrollableWrap.offsetHeight - historyMessagesEl.offsetHeight - - 20 - (Config.Mobile ? 0 : 39); if (historyMessagesEl.offsetHeight > 0 && marginTop > 0) { diff --git a/app/partials/desktop/im.html b/app/partials/desktop/im.html index 4df99cb1..2c3a0c41 100644 --- a/app/partials/desktop/im.html +++ b/app/partials/desktop/im.html @@ -112,7 +112,7 @@
-
+