matrix-nio icon indicating copy to clipboard operation
matrix-nio copied to clipboard

Document how to properly setup a sync for encryption to work.

Open poljar opened this issue 6 years ago • 2 comments

Document that client users need to make sure that the room state is synced for encryption to work.

There are multiple ways that this needs to be handled depending on the other sync settings (e.g. member lazy loading).

poljar avatar Sep 06 '19 18:09 poljar

I would be very interested in this. If you point me to some example code (for example another project using matrix-nio for this) I would gladly improve the documentation.

arthurlutz avatar Dec 16 '19 11:12 arthurlutz

We have two cases depending on if lazy loading is used, in all cases the first sync needs to be done using `full_state=True.

If lazy loading is used you'll need to additionally make sure that the full member list is fetched for a room before sending a message in that room. client.joined_members(room_id) can be used for that.

Pantalaimon is a project that uses nio and encryption.

PS: Thanks for doing this. :)

poljar avatar Dec 16 '19 12:12 poljar