-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crypto: key reshare does not work if there was a device change #4782
Comments
manuroe
added
T-Defect
Something isn't working: bugs, crashes, hangs and other reported problems
feature:e2e
labels
Sep 1, 2021
A test to highlight the issue:
|
manuroe
changed the title
Crypto: key reshare does not work if there is a device change
Crypto: key reshare does not work if there was a device change
Sep 1, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
[MXMegolmEncryption] reshareKey: ERROR: Never shared megolm key with this device
There is an issue in the implementation of the crypto store at https://github.com/matrix-org/matrix-ios-sdk/blob/v0.19.8/MatrixSDK/Crypto/Data/Store/MXRealmCryptoStore/MXRealmCryptoStore.m#L646.
With this "delete all" action, all existing references to those
MXRealmDeviceInfo
objects are set to null by RealmDB.So, a
MXRealmSharedOutboundSession
object that depends on it will be reset like this:Next time we will try to check if we already shared a session toBob1 by querying
MXRealmSharedOutboundSession
objects by device id at this line, we will find nothing.The text was updated successfully, but these errors were encountered: