Also hide encryption in room settings in simplified mode

Change-Id: I180d841cf3c62000d34b0642bfbf40eb1dd7037e
This commit is contained in:
SpiritCroc 2020-11-23 13:34:46 +01:00
parent 78766d7fc5
commit 4fb7ff6cf5
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ class RoomSettingsController @Inject constructor(
action = { if (data.actionPermissions.canChangeHistoryReadability) callback?.onHistoryVisibilityClicked() }
)
buildEncryptionAction(data.actionPermissions, roomSummary)
if (enableNonSimplifiedMode) {
buildEncryptionAction(data.actionPermissions, roomSummary)
}
}
private fun buildEncryptionAction(actionPermissions: RoomSettingsViewState.ActionPermissions, roomSummary: RoomSummary) {