mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Update identity key after a send error tells us it has changed
FREEBIE
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
});
|
||||
|
||||
this.messageCollection.on('change:errors', this.handleMessageError, this);
|
||||
this.messageCollection.on('send-error', this.onMessageError, this);
|
||||
|
||||
this.on('change:avatar', this.updateAvatarUrl);
|
||||
this.on('destroy', this.revokeAvatarUrl);
|
||||
@@ -55,6 +56,9 @@
|
||||
return this.id === this.ourNumber;
|
||||
},
|
||||
|
||||
onMessageError: function() {
|
||||
this.updateVerified();
|
||||
},
|
||||
updateVerified: function() {
|
||||
if (this.isPrivate()) {
|
||||
return Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user