|
|
@@ -68,12 +68,10 @@ SlackHistory.prototype.toStatic = function(knownVersion) {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-SlackHistory.prototype.update = function(messages) {
|
|
|
- // TODO
|
|
|
-};
|
|
|
-
|
|
|
-SlackHistory.prototype.getUpdates = function(knownVersion) {
|
|
|
- // TODO
|
|
|
+SlackHistory.prototype.resort = function() {
|
|
|
+ this.messages.sort(function(a, b) {
|
|
|
+ return a.ts -b.ts;
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
/** @suppress {undefinedVars,checkTypes} */
|