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

Store decrypted messages locally in an indexable db #2635

Open
adrastaea opened this issue Oct 8, 2024 · 0 comments
Open

Store decrypted messages locally in an indexable db #2635

adrastaea opened this issue Oct 8, 2024 · 0 comments
Labels
developer experience e2ee end-to-end encryption lfa Features related to local-first-web/auth implementation

Comments

@adrastaea
Copy link
Collaborator

Description

To avoid decrypting messages multiple times, we should cache decrypted messages locally. This is a good opportunity to move message logic from sagas to the backend as well. We should keep a queue of received encrypted messages and pop them once they are decrypted and put in the local store. We should also set the decrypted message store up so that we can easily add storage windows based on storage sizes or time ranges so that users can effectively manage local data sizes. :NOTE: this is already given to us for free because we already push messages to the redux store which I think pushes this to non-essential path work. But this is a good ticket for later work to make the decrypted message base work more like a queue/cache and add search functions later.

Acceptance Criteria

  1. Encrypted messages received are pushed to a queue.
  2. Decrypted messages are pushed to a persisted local cache (sqllite?)
  3. Messages are displayed from the cache
@adrastaea adrastaea added developer experience e2ee end-to-end encryption lfa Features related to local-first-web/auth implementation labels Oct 8, 2024
@adrastaea adrastaea moved this to Backlog - Desktop & Backend in Quiet Oct 8, 2024
@adrastaea adrastaea added this to Quiet Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience e2ee end-to-end encryption lfa Features related to local-first-web/auth implementation
Projects
Status: Backlog - Desktop & Backend
Development

No branches or pull requests

1 participant