Add unread.get_all_msg_ids().

This commit is contained in:
Steve Howell
2018-05-10 11:11:53 +00:00
committed by Tim Abbott
parent 073ecaac66
commit 6ca145b2ed
2 changed files with 13 additions and 0 deletions

View File

@@ -539,6 +539,12 @@ exports.get_msg_ids_for_mentions = function () {
return util.sorted_ids(ids);
};
exports.get_all_msg_ids = function () {
var ids = unread_messages.members();
return util.sorted_ids(ids);
};
exports.get_msg_ids_for_starred = function () {
// This is here for API consistency sake--we never
// have unread starred messages. (Some day we may ironically