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,
canShowSecurityAndPrivacy = canShowSecurityAndPrivacy,
hasMemberVerificationViolations = hasMemberVerificationViolations,
canReportRoom = canReportRoom,
canReportRoom = !isDm && canReportRoom,
isTombstoned = roomInfo.successorRoom != null,
showDebugInfo = isDeveloperModeEnabled,
roomVersion = roomInfo.roomVersion,
@@ -804,7 +804,8 @@ private fun OtherActionsSection(
if (dmOtherMemberDetailsState != null) {
BlockUserSection(dmOtherMemberDetailsState)
BlockUserDialogs(dmOtherMemberDetailsState)
} else if (canReportRoom) {
}
if (canReportRoom) {
ListItem(
headlineContent = {
Text(stringResource(CommonStrings.action_report_room))