Explorar el Código

[bugfix] resort messages on receive

B Thibault hace 9 años
padre
commit
8c5dde0388
Se han modificado 1 ficheros con 1 adiciones y 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;
 }