mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Add missing removePreKeyBundle(...) call
This commit is contained in:
parent
61fccf2249
commit
62bb1f1db8
|
@ -175,6 +175,11 @@ final class DeviceLinkingModal : Modal, DeviceLinkingSessionDelegate {
|
|||
session.stopListeningForLinkingRequests()
|
||||
session.markLinkingRequestAsProcessed() // Only relevant in master mode
|
||||
delegate?.handleDeviceLinkingModalDismissed() // Only relevant in slave mode
|
||||
if let deviceLink = deviceLink {
|
||||
OWSPrimaryStorage.shared().dbReadWriteConnection.readWrite { transaction in
|
||||
OWSPrimaryStorage.shared().removePreKeyBundle(forContact: deviceLink.slave.hexEncodedPublicKey, transaction: transaction)
|
||||
}
|
||||
}
|
||||
dismiss(animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue