Add missing "Security" section.

This commit is contained in:
Benoit Marty
2026-06-01 17:46:25 +02:00
parent d7788a8c01
commit 6c804e734d
@@ -302,6 +302,21 @@ fun RoomDetailsView(
)
}
}
if (state.isEncrypted) {
PreferenceCategory(
title = stringResource(R.string.screen_room_details_security_title)
) {
ListItem(
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Lock())),
headlineContent = {
Text(stringResource(id = R.string.screen_room_details_encryption_enabled_title))
},
supportingContent = {
Text(stringResource(id = R.string.screen_room_details_encryption_enabled_subtitle))
},
)
}
}
OtherActionsSection(
dmOtherMemberDetailsState = state.dmOtherMemberDetailsState,
canReportRoom = state.canReportRoom,