Explorar o código

[bugfix] resort messages on receive

B Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
8c5dde0388
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 }