rely on conversationOperationLeave to show "Leave conversation" button

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2025-06-03 12:12:04 +02:00
parent 9fe39603c3
commit 14fd9b4af8
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -152,10 +152,7 @@ class ConversationsListBottomDialog(
)
binding.conversationOperationLeave.visibility = setVisibleIf(
conversation.canLeaveConversation &&
// leaving is by api not possible for the last user with moderator permissions.
// for now, hide this option for all moderators.
!ConversationUtils.canModerate(conversation, currentUser.capabilities!!.spreedCapability!!)
conversation.canLeaveConversation
)
}