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

Have the crypto crate handle some subset of state events #1325

Closed
BillCarsonFr opened this issue Jan 5, 2023 · 1 comment
Closed

Have the crypto crate handle some subset of state events #1325

BillCarsonFr opened this issue Jan 5, 2023 · 1 comment

Comments

@BillCarsonFr
Copy link
Member

BillCarsonFr commented Jan 5, 2023

Problem

Currently the crypto crate is not handling any state events (only handling to_device and otk, fallbacks..)
As a consequence users of the SDK must on their side do several things like

  • Handling and storing the encryption state of rooms
  • Managing membership (traking users, passing the correct list of devices to the olmMachine when sending events)

There can be some good amount of logic there, that different client could handle badly, like protection regarding encryption state resets, encrypt to invited members, tracking and downloading user keys...

It would make sense that the crypto SDK handles it completely.

List of events that could be handled:

  • m.room.encryption
  • m.room.member
  • m.room.history_visibility
@poljar
Copy link
Contributor

poljar commented Feb 2, 2024

Some of it was added in #3042 and #1460.

I think we should add more specific issues if/when the need arises to store more.

Closing this now.

@poljar poljar closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants