This commit is contained in:
Igor Zhukov 2014-06-14 01:04:26 +04:00
parent 4fec64088e
commit c57597d3b5
2 changed files with 5 additions and 3 deletions

View File

@ -706,11 +706,13 @@ angular.module('myApp.controllers', [])
AppMessagesManager.getHistory($scope.curDialog.inputPeer, minID, limit, backLimit).then(function (historyResult) {
if (curJump != jump || curLessJump != lessJump) return;
angular.forEach(historyResult.history, function (id) {
var i, id;
for (i = historyResult.history.length - 1; i >= 0; i--) {
id = historyResult.history[i];
if (id > minID) {
$scope.history.push(AppMessagesManager.wrapForHistory(id));
}
});
}
if (historyResult.history.length) {
minID = historyResult.history.length >= backLimit

View File

@ -24,7 +24,7 @@
</h3>
<div class="modal_section_body changelog_version_changes">
<ul class="list-unstyled changelog_version_changes_list">
<li>Added messages search</li>
<li>Added search of messages</li>
<li>Improved performance of chats with lots of unread messages</li>
<li>Bugfixes</li>
</ul>