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:
parent
f7191ad9de
commit
71467822f6
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue