mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Clear key conflict before replaying it
Don't save the change until we successfully process the message, but make it first so that the user sees the error disappear when the new key is accepted. // FREEBIE
This commit is contained in:
@@ -233,6 +233,7 @@
|
||||
resolveConflict: function(number) {
|
||||
var error = this.getKeyConflict(number);
|
||||
if (error) {
|
||||
this.removeConflictFor(number);
|
||||
var promise = new textsecure.ReplayableError(error).replay();
|
||||
if (this.isIncoming()) {
|
||||
promise = promise.then(function(dataMessage) {
|
||||
|
||||
Reference in New Issue
Block a user