Handle key mismatches when fetching prekey bundles

This commit is contained in:
Max Radermacher 2024-10-17 20:39:36 -05:00 committed by GitHub
parent 9e83ba7836
commit 87f2e7b7de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,7 +274,7 @@ public class MessageSender {
identityStore: identityManager.libSignalStore(for: .aci, tx: transaction.asV2Write),
context: transaction
)
} catch SignalError.untrustedIdentity(_) {
} catch SignalError.untrustedIdentity(_), IdentityManagerError.identityKeyMismatchForOutgoingMessage {
Logger.error("Found untrusted identity for \(serviceId)")
handleUntrustedIdentityKeyError(
serviceId: serviceId,