Browse Source

Hotfixes

master
Igor Zhukov 10 years ago
parent
commit
c57597d3b5
  1. 6
      app/js/controllers.js
  2. 2
      app/partials/changelog_modal.html

6
app/js/controllers.js

@ -706,11 +706,13 @@ angular.module('myApp.controllers', []) @@ -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

2
app/partials/changelog_modal.html

@ -24,7 +24,7 @@ @@ -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>

Loading…
Cancel
Save