mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Conversation.markRead() - wait for all database saves are complete
FREEBIE
This commit is contained in:
@@ -533,7 +533,9 @@
|
||||
Whisper.Notifications.remove(Whisper.Notifications.where({
|
||||
messageId: this.id
|
||||
}));
|
||||
return this.save();
|
||||
return new Promise(function(resolve, reject) {
|
||||
this.save().then(resolve, reject);
|
||||
}.bind(this));
|
||||
},
|
||||
isExpiring: function() {
|
||||
return this.get('expireTimer') && this.get('expirationStartTimestamp');
|
||||
|
||||
Reference in New Issue
Block a user