on show voice call only option in DMs

This commit is contained in:
Valere
2026-03-04 15:08:24 +01:00
parent 6d069e46e2
commit f805dde0f3
8 changed files with 32 additions and 15 deletions

View File

@@ -357,11 +357,14 @@ private fun MainActionsSection(
}
if (state.roomCallState.hasPermissionToJoin()) {
// TODO Improve the view depending on all the cases here?
MainActionButton(
title = stringResource(CommonStrings.action_call),
imageVector = CompoundIcons.VoiceCall(),
onClick = { onCall(CallIntent.AUDIO) },
)
if (state.roomType is RoomDetailsType.Dm) {
// As per design, only show voice call in DM
MainActionButton(
title = stringResource(CommonStrings.action_call),
imageVector = CompoundIcons.VoiceCall(),
onClick = { onCall(CallIntent.AUDIO) },
)
}
MainActionButton(
title = stringResource(CommonStrings.common_video),