瀏覽代碼

[bugfix] resort messages on receive

B Thibault 9 年之前
父節點
當前提交
8c5dde0388
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      srv/src/slackHistory.js

+ 1 - 0
srv/src/slackHistory.js

@@ -54,6 +54,7 @@ SlackHistory.prototype.pushAll = function(evts) {
     evts.forEach(function(e) {
         result = Math.max(this.push(e), result);
     }.bind(this));
+    this.resort();
     return result;
 }