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

Introduce Room.hasEncryptionStateEvent #4030

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jan 24, 2024

... and replace a lot of calls to MatrixClient.isRoomEncrypted with it.

This is a lesser check (since it can be tricked by servers withholding the state event), but for most cases it is sufficient. At the end of the day, if the server witholds the state, the room is pretty much bricked anyway. The one thing we mustn't do is allow users to send unencrypted events to the room.

Preparation work for element-hq/element-web#26108.


This change is marked as an internal change (Task), so will not be included in the changelog.

... and replace a lot of calls to `MatrixClient.isRoomEncrypted` with it.

This is a lesser check (since it can be tricked by servers withholding the
state event), but for most cases it is sufficient. At the end of the day, if
the server witholds the state, the room is pretty much bricked anyway. The one
thing we *mustn't* do is allow users to send *unencrypted* events to the room.
@richvdh richvdh added this pull request to the merge queue Jan 25, 2024
Merged via the queue into develop with commit 99b3cf2 Jan 25, 2024
23 checks passed
@richvdh richvdh deleted the rav/element-r/room_list/has_encryption_event branch January 25, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants