mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Move logic to the presenter
This commit is contained in:
+1
-1
@@ -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,
|
||||||
|
|||||||
+2
-1
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user