|
|
|
@ -809,9 +809,10 @@ angular.module('myApp.controllers', [])
@@ -809,9 +809,10 @@ angular.module('myApp.controllers', [])
|
|
|
|
|
var curJump = jump, |
|
|
|
|
curMoreJump = moreJump, |
|
|
|
|
inputMediaFilter = $scope.historyFilter.mediaType && {_: inputMediaFilters[$scope.historyFilter.mediaType]}, |
|
|
|
|
limit = Config.Navigator.mobile ? 20 : 0, |
|
|
|
|
getMessagesPromise = inputMediaFilter |
|
|
|
|
? AppMessagesManager.getSearch($scope.curDialog.inputPeer, '', inputMediaFilter, maxID) |
|
|
|
|
: AppMessagesManager.getHistory($scope.curDialog.inputPeer, maxID); |
|
|
|
|
? AppMessagesManager.getSearch($scope.curDialog.inputPeer, '', inputMediaFilter, maxID, limit) |
|
|
|
|
: AppMessagesManager.getHistory($scope.curDialog.inputPeer, maxID, limit); |
|
|
|
|
|
|
|
|
|
getMessagesPromise.then(function (historyResult) { |
|
|
|
|
if (curJump != jump || curMoreJump != moreJump) return; |
|
|
|
@ -849,6 +850,9 @@ angular.module('myApp.controllers', [])
@@ -849,6 +850,9 @@ angular.module('myApp.controllers', [])
|
|
|
|
|
else if (forceRecent) { |
|
|
|
|
limit = 10; |
|
|
|
|
} |
|
|
|
|
else if (Config.Navigator.mobile) { |
|
|
|
|
limit = 20; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var curJump = ++jump, |
|
|
|
|
inputMediaFilter = $scope.historyFilter.mediaType && {_: inputMediaFilters[$scope.historyFilter.mediaType]}, |
|
|
|
|