mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
New MessageController as the single place for in-memory messages
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
/* global _: false */
|
||||
/* global Backbone: false */
|
||||
/* global i18n: false */
|
||||
/* global moment: false */
|
||||
/* global Whisper: false */
|
||||
/* global
|
||||
_,
|
||||
Backbone,
|
||||
i18n,
|
||||
MessageController,
|
||||
moment,
|
||||
Whisper
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line func-names
|
||||
(function() {
|
||||
@@ -18,7 +21,9 @@
|
||||
});
|
||||
|
||||
await Promise.all(
|
||||
messages.map(async message => {
|
||||
messages.map(async fromDB => {
|
||||
const message = MessageController.register(fromDB.id, fromDB);
|
||||
|
||||
window.log.info('Message expired', {
|
||||
sentAt: message.get('sent_at'),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user