Set disappearing check timer reliably - on all message saves
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user