Set disappearing check timer reliably - on all message saves
This commit is contained in:
parent
9dd756f96a
commit
22613c8cc4
6 changed files with 39 additions and 31 deletions
|
@ -1304,7 +1304,6 @@
|
|||
});
|
||||
}
|
||||
|
||||
Whisper.ExpiringMessagesListener.update();
|
||||
window.log.info('Set message expiration', {
|
||||
expiresAt,
|
||||
sentAt: this.get('sent_at'),
|
||||
|
@ -1313,6 +1312,9 @@
|
|||
},
|
||||
});
|
||||
|
||||
Whisper.Message.refreshExpirationTimer = () =>
|
||||
Whisper.ExpiringMessagesListener.update();
|
||||
|
||||
Whisper.MessageCollection = Backbone.Collection.extend({
|
||||
model: Whisper.Message,
|
||||
// Keeping this for legacy upgrade pre-migrate to SQLCipher
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue