Page MenuHomePhorge

Support enabling encryption in a room
ClosedPublic

Authored by tusooa on May 21 2024, 8:15 PM.
Tags
None
Referenced Files
F112144: D33.1732272239.diff
Thu, Nov 21, 2:43 AM
F112143: D33.1732272237.diff
Thu, Nov 21, 2:43 AM
F112138: D33.1732272045.diff
Thu, Nov 21, 2:40 AM
F112100: D33.1732271272.diff
Thu, Nov 21, 2:27 AM
Subscribers
None

Details

Summary

This commit adds a label in RoomSettingsPage to indicate whether encryption is enabled in the room. It also adds a button to enable encryption for an unencrypted room.

Type: add

Closes https://iron.lily-is.land/T68

Test Plan

Verify that unit tests pass.

Open the settings page of an encrypted room. It should show the room is encrypted an has no "Enable encryption" button.

Open the settings page of an unencrypted room. It should show the room is not encrypted and has an "Enable encryption" button. Clicking on it should open a popup asking you whether you want to do it. When you click Cancel, nothing should happen. When you click Ok, it should proceed to send a state event.
If you have permission to send an m.room.encryption state event, clicking on it should results in the room being encrypted, and any new messages you send should be encrypted. If you do not have such permission, it should display an error.

Diff Detail

Repository
rK kazv
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.May 21 2024, 8:19 PM
Harbormaster failed remote builds in B49: Diff 80!
This revision is now accepted and ready to land.May 29 2024, 6:05 AM