Get 20 message on mobile
This commit is contained in:
parent
691617f1c8
commit
fd3758327a
@ -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', [])
|
||||
else if (forceRecent) {
|
||||
limit = 10;
|
||||
}
|
||||
else if (Config.Navigator.mobile) {
|
||||
limit = 20;
|
||||
}
|
||||
|
||||
var curJump = ++jump,
|
||||
inputMediaFilter = $scope.historyFilter.mediaType && {_: inputMediaFilters[$scope.historyFilter.mediaType]},
|
||||
|
Loading…
Reference in New Issue
Block a user