mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 00:18:45 +01:00
Check trust store for identity key information on every new message
It's debounced so it doesn't go too crazy. FREEBIE
This commit is contained in:
@@ -106,6 +106,8 @@
|
||||
this.listenTo(this.model, 'expired', this.onExpired);
|
||||
this.listenTo(this.model.messageCollection, 'expired', this.onExpiredCollection);
|
||||
|
||||
this.lazyUpdateVerified = _.debounce(this.model.updateVerified, 1000);
|
||||
|
||||
this.render();
|
||||
new TimerMenuView({ el: this.$('.timer-menu'), model: this.model });
|
||||
|
||||
@@ -467,6 +469,9 @@
|
||||
},
|
||||
|
||||
addMessage: function(message) {
|
||||
// This is debounced, so it won't hit the database too often.
|
||||
this.lazyUpdateVerified();
|
||||
|
||||
this.model.messageCollection.add(message, {merge: true});
|
||||
message.setToExpire();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user