TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.98k stars 86 forks source link

Decrypt messages with team key #2632

Open adrastaea opened 1 month ago

adrastaea commented 1 month ago

Description

We already store messages in the redux store after receiving them from OrbitDB, so until we prioritize work to move from the redux store to a better local storage solution we should just decrypt during the replicate and replicate.progress events in storage.service:subscribeToChannel and pass the decrypted message to the redux store. We can maintain a queue of messages that failed to decrypt in LevelDB until we have a better solution.

Acceptance Criteria

  1. Messages are decrypted in backend when replicated from OrbitDB and passed to Redux
  2. Messages which fail to decrypt are added to a queue and checked when the lockboxes a user can access change