Fix outgoing identity key conflict handling
// FREEBIE
This commit is contained in:
parent
9f021a9d7f
commit
8745424d3a
3 changed files with 11 additions and 3 deletions
|
@ -211,7 +211,7 @@
|
|||
</script>
|
||||
<script type='text/x-tmpl-mustache' id='outgoing-key-conflict'>
|
||||
<p>
|
||||
This contact's identity key.has changed.
|
||||
This contact's identity key has changed.
|
||||
Click to process and display.
|
||||
</p>
|
||||
</script>
|
||||
|
|
|
@ -39945,8 +39945,12 @@ window.textsecure.messaging = function() {
|
|||
}
|
||||
});
|
||||
});
|
||||
} else
|
||||
} else if (error.message !== "Identity key changed at session save time") {
|
||||
registerError(number, "Failed to create or send message", error);
|
||||
} else {
|
||||
error = new textsecure.OutgoingIdentityKeyError(number, message.toArrayBuffer(), timestamp);
|
||||
registerError(number, "Identity key changed", error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -215,8 +215,12 @@ window.textsecure.messaging = function() {
|
|||
}
|
||||
});
|
||||
});
|
||||
} else
|
||||
} else if (error.message !== "Identity key changed at session save time") {
|
||||
registerError(number, "Failed to create or send message", error);
|
||||
} else {
|
||||
error = new textsecure.OutgoingIdentityKeyError(number, message.toArrayBuffer(), timestamp);
|
||||
registerError(number, "Identity key changed", error);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue