Skip to content
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

Pending encrypted events lost on restart #653

Open
TobiasFella opened this issue May 6, 2023 · 3 comments
Open

Pending encrypted events lost on restart #653

TobiasFella opened this issue May 6, 2023 · 3 comments
Labels
bug/fix The library doesn't work as expected E2EE End-to-end encryption is affected

Comments

@TobiasFella
Copy link
Member

  1. Receive an encrypted event from an unknown sender
  2. Store it as pending while waiting for the device keys
  3. Client (randomly) crashes or closes normally
  4. Client starts again
  5. Encrypted event lost
  6. Profit :)
@KitsuneRal
Copy link
Member

Do you mean a to-device event? Because room events would just be requested from the server, right?

@KitsuneRal KitsuneRal added the bug/fix The library doesn't work as expected label May 6, 2023
@TobiasFella
Copy link
Member Author

TobiasFella commented May 6, 2023 via email

@KitsuneRal
Copy link
Member

I guess we can save encrypted to-device payloads along with normal cache saving; or even store them in the database now that we have it.

@KitsuneRal KitsuneRal added the E2EE End-to-end encryption is affected label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix The library doesn't work as expected E2EE End-to-end encryption is affected
Projects
Status: 0.9 - To Do
Development

No branches or pull requests

2 participants