-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot decrypt message: sender's device has not sent us the keys for this message ("bug N..") #261
Comments
This issue is also happening to a number of users who upgrade from v4. It may not be the same cause, but it's the same symptoms.
|
Other Scenarios that we tried to trigger the issue : Scenario 1 : limit the space storage (The idea is to make the IndexedDB to fail)
This scenario is not the initial scenario that we had in production: the user seems to have a lot of memory Scenario 2 : bad network conditions
This scenario is not the initial scenario that we had in production: the user seems to have a lot of memory Conclusion :
Concerning the issue we had initially with our user(see the description of the issue), the fact that opening a new session has resolved the issue in the existing session could also indicate that the IndexedBD had corrupted data inside the db and was fixed by the new session. |
We could track this issue on Element side : element-hq/element-web#14174 |
Not really a bug a v4 anymore, closing for now |
What I wrote is encrypted, my contacts can not see my messages
Scenario
NOTE : this issue cannot be reproduced for everyone (this issue happens for specific user)
URL : https://www.tchap.gouv.fr/
More information :
Analysis
We tried other scenarios
7JvrMSEAoGl5U5Bp47jZZEEFeTQfTOtdrquI0PbwgnI
osAzWWBpcwa13kRh4bpjvgKLQMejjAwwVswpfv0ElOs
7JvrMSEAoGl5U5Bp47jZZEEFeTQfTOtdrquI0PbwgnI
YpDkbqjRJIMz75RwN9bWG8Y5yDzkbkD9EgDtOrTAnjc
7JvrMSEAoGl5U5Bp47jZZEEFeTQfTOtdrquI0PbwgnI
YNx+AxDv9Ion/x4oRedPPtjY6VC5qqlPW0bB8Ae68qA
Logs from user1's browser
Before user1 sends a message that cannot be decrypted by user2
user1 when opening a new room
In code, it triggers
cleardatabase
which seems to wipe the contents of indexeddb :https://github.com/matrix-org/matrix-js-sdk/blob/121250a6fb7709de8fb49cc2c40d0ad11f09365a/src/store/indexeddb.ts#L303-L304
// We try to delete IndexedDB after degrading since this store is only a
// cache (the app will still function correctly without the data).
// It's possible that deleting repair IndexedDB for the next app load,
// potentially by making a little more space available.`
Comments
It seems that user1 cannot send its keys as the key sharing process fails ie. the error with the IndexedDB therefore user2 does not receive the key from user1 and he is not able to decrypt the message.
The text was updated successfully, but these errors were encountered: