mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
fix logic for canModerate
bug was introduced with commit 754b8250
As a result, for example the delete conversation option was not shown.
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
0062f22a57
commit
d93dd0f3c1
@ -185,10 +185,9 @@ data class Conversation(
|
|||||||
@Deprecated("Use ConversationUtil")
|
@Deprecated("Use ConversationUtil")
|
||||||
fun canModerate(conversationUser: User): Boolean {
|
fun canModerate(conversationUser: User): Boolean {
|
||||||
return isParticipantOwnerOrModerator &&
|
return isParticipantOwnerOrModerator &&
|
||||||
ConversationUtils.isLockedOneToOne(
|
!ConversationUtils.isLockedOneToOne(
|
||||||
ConversationModel.mapToConversationModel(this),
|
ConversationModel.mapToConversationModel(this),
|
||||||
conversationUser
|
conversationUser.capabilities?.spreedCapability!!
|
||||||
.capabilities?.spreedCapability!!
|
|
||||||
) &&
|
) &&
|
||||||
type != ConversationType.FORMER_ONE_TO_ONE &&
|
type != ConversationType.FORMER_ONE_TO_ONE &&
|
||||||
!ConversationUtils.isNoteToSelfConversation(ConversationModel.mapToConversationModel(this))
|
!ConversationUtils.isNoteToSelfConversation(ConversationModel.mapToConversationModel(this))
|
||||||
|
Loading…
Reference in New Issue
Block a user