From 7ed20f9aab07fb8ed311b1a780ecd4a3c773c510 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 23 Jan 2024 14:27:06 +0100 Subject: [PATCH] Remove unnecessary parenthesis. --- .../features/messages/impl/actionlist/ActionListPresenter.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenter.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenter.kt index 3ba333a850..f753266062 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenter.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/actionlist/ActionListPresenter.kt @@ -82,8 +82,7 @@ class ActionListPresenter @Inject constructor( target: MutableState ) = launch { target.value = ActionListState.Target.Loading(timelineItem) - val canRedact = (timelineItem.isMine && userCanRedactOwn) || - (!timelineItem.isMine && userCanRedactOther) + val canRedact = timelineItem.isMine && userCanRedactOwn || !timelineItem.isMine && userCanRedactOther val actions = when (timelineItem.content) { is TimelineItemRedactedContent -> {