Add load notification from history

This commit is contained in:
ClemDee
2019-06-28 16:06:44 +02:00
parent 833d70825e
commit c96be7bf89
4 changed files with 74 additions and 17 deletions

View File

@@ -204,6 +204,15 @@ define([
});
};
};
mailbox.getNotificationsHistory = function (type, count, lastKnownHash, cb) {
mailbox.getMoreHistory(type, count, lastKnownHash, function (err, messages) {
messages.forEach(function (data) {
data.content.archived = true;
Notifications.add(Common, data);
});
cb(err, messages);
});
};
// CHANNEL WITH WORKER