Move logic to the presenter
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+2
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user