Fixed browse photo history, confirm typo
This commit is contained in:
parent
4926afff65
commit
50a951e577
@ -1017,7 +1017,6 @@ angular.module('myApp.controllers', [])
|
|||||||
if (searchCachedResult.history.indexOf($scope.messageID) >= 0) {
|
if (searchCachedResult.history.indexOf($scope.messageID) >= 0) {
|
||||||
list = searchCachedResult.history;
|
list = searchCachedResult.history;
|
||||||
maxID = list[list.length - 1];
|
maxID = list[list.length - 1];
|
||||||
hasMore = list.length < searchCachedResult.count;
|
|
||||||
|
|
||||||
updatePrevNext();
|
updatePrevNext();
|
||||||
}
|
}
|
||||||
@ -1050,10 +1049,14 @@ angular.module('myApp.controllers', [])
|
|||||||
if (loadingPromise) return loadingPromise;
|
if (loadingPromise) return loadingPromise;
|
||||||
|
|
||||||
return loadingPromise = AppMessagesManager.getSearch(inputPeer, inputQuery, inputFilter, maxID).then(function (searchResult) {
|
return loadingPromise = AppMessagesManager.getSearch(inputPeer, inputQuery, inputFilter, maxID).then(function (searchResult) {
|
||||||
maxID = searchResult.history[searchResult.history.length - 1];
|
if (searchResult.history.length) {
|
||||||
list = list.concat(searchResult.history);
|
maxID = searchResult.history[searchResult.history.length - 1];
|
||||||
|
list = list.concat(searchResult.history);
|
||||||
|
hasMore = list.length < searchResult.count;
|
||||||
|
} else {
|
||||||
|
hasMore = false;
|
||||||
|
}
|
||||||
|
|
||||||
hasMore = list.length < searchResult.count;
|
|
||||||
updatePrevNext();
|
updatePrevNext();
|
||||||
loadingPromise = false;
|
loadingPromise = false;
|
||||||
});
|
});
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
</ng-pluralize>
|
</ng-pluralize>
|
||||||
</span>
|
</span>
|
||||||
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Are you sure to send file(s) from clipboard?</span>
|
<span ng-switch-when="FILE_CLIPBOARD_PASTE">Are you sure to send file(s) from clipboard?</span>
|
||||||
<span ng-switch-when="MESSAGE_DELETE">Are you sure to delete the message?</span>
|
<span ng-switch-when="MESSAGE_DELETE">Are you sure you want to delete the message?</span>
|
||||||
<div ng-switch-when="LOGIN_PHONE_CORRECT">
|
<div ng-switch-when="LOGIN_PHONE_CORRECT">
|
||||||
Is this phone number correct?
|
Is this phone number correct?
|
||||||
<div class="confirm_phone_number"> <span ng-bind="country_code"></span> <span ng-bind="phone_number"></span> </div>
|
<div class="confirm_phone_number"> <span ng-bind="country_code"></span> <span ng-bind="phone_number"></span> </div>
|
||||||
|
Loading…
Reference in New Issue
Block a user