Move setVerified to conversation queue

This commit is contained in:
Fedor Indutny 2023-03-09 15:33:12 -08:00 committed by GitHub
parent 26ae1c8a88
commit 371c73377c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 7 deletions

View file

@ -627,7 +627,7 @@ export default class OutgoingMessage {
error instanceof LibSignalErrorBase &&
error.code === ErrorCode.UntrustedIdentity
) {
newError = new OutgoingIdentityKeyError(identifier);
newError = new OutgoingIdentityKeyError(identifier, error);
log.error(
'Got "key changed" error from encrypt - no identityKey for application layer',
identifier,
@ -736,7 +736,7 @@ export default class OutgoingMessage {
error instanceof LibSignalErrorBase &&
error.code === ErrorCode.UntrustedIdentity
) {
const newError = new OutgoingIdentityKeyError(identifier);
const newError = new OutgoingIdentityKeyError(identifier, error);
this.registerError(identifier, 'Untrusted identity', newError);
} else {
this.registerError(