Add prev/next helpers for MessageList.

This commit is contained in:
Steve Howell
2018-05-26 10:29:38 +00:00
committed by Tim Abbott
parent c90aac56ba
commit a074056127
3 changed files with 75 additions and 0 deletions

View File

@@ -91,6 +91,14 @@ exports.MessageList.prototype = {
return this.data.last();
},
prev: function () {
return this.data.prev();
},
next: function () {
return this.data.next();
},
nth_most_recent_id: function (n) {
return this.data.nth_most_recent_id(n);
},