Move logic to the presenter

This commit is contained in:
Benoit Marty
2026-06-01 17:38:24 +02:00
parent 6222416b17
commit ac93c6bd70
2 changed files with 3 additions and 2 deletions
@@ -209,7 +209,7 @@ class RoomDetailsPresenter(
knockRequestsCount = knockRequestsCount, knockRequestsCount = knockRequestsCount,
canShowSecurityAndPrivacy = canShowSecurityAndPrivacy, canShowSecurityAndPrivacy = canShowSecurityAndPrivacy,
hasMemberVerificationViolations = hasMemberVerificationViolations, hasMemberVerificationViolations = hasMemberVerificationViolations,
canReportRoom = canReportRoom, canReportRoom = !isDm && canReportRoom,
isTombstoned = roomInfo.successorRoom != null, isTombstoned = roomInfo.successorRoom != null,
showDebugInfo = isDeveloperModeEnabled, showDebugInfo = isDeveloperModeEnabled,
roomVersion = roomInfo.roomVersion, roomVersion = roomInfo.roomVersion,
@@ -804,7 +804,8 @@ private fun OtherActionsSection(
if (dmOtherMemberDetailsState != null) { if (dmOtherMemberDetailsState != null) {
BlockUserSection(dmOtherMemberDetailsState) BlockUserSection(dmOtherMemberDetailsState)
BlockUserDialogs(dmOtherMemberDetailsState) BlockUserDialogs(dmOtherMemberDetailsState)
} else if (canReportRoom) { }
if (canReportRoom) {
ListItem( ListItem(
headlineContent = { headlineContent = {
Text(stringResource(CommonStrings.action_report_room)) Text(stringResource(CommonStrings.action_report_room))