Code readability

This commit is contained in:
Benoit Marty 2020-08-03 16:43:23 +02:00 committed by Benoit Marty
parent d531e88666
commit 025d5f7b4c
1 changed files with 5 additions and 2 deletions

View File

@ -104,8 +104,11 @@ class CreateRoomController @Inject constructor(private val stringProvider: Strin
enabled(enableFormElement) enabled(enableFormElement)
title(stringProvider.getString(R.string.create_room_encryption_title)) title(stringProvider.getString(R.string.create_room_encryption_title))
summary( summary(
if (viewState.hsAdminHasDisabledE2E) stringProvider.getString(R.string.settings_hs_admin_e2e_disabled) if (viewState.hsAdminHasDisabledE2E) {
else stringProvider.getString(R.string.create_room_encryption_description) stringProvider.getString(R.string.settings_hs_admin_e2e_disabled)
} else {
stringProvider.getString(R.string.create_room_encryption_description)
}
) )
switchChecked(viewState.isEncrypted) switchChecked(viewState.isEncrypted)