Merge pull request #1520 from nextcloud/bugfix/noid/fixToHideMessageDeleteButton

fix displaying of message delete-button
This commit is contained in:
Andy Scherzinger 2021-08-12 21:44:45 +02:00 committed by GitHub
commit 9d11d7bac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2421,7 +2421,7 @@ class ChatController(args: Bundle) :
val isUserAllowedByPrivileges = if (message.actorId == conversationUser.userId) {
true
} else {
currentConversation!!.isParticipantOwnerOrModerator
currentConversation!!.canModerate(conversationUser)
}
if (!isUserAllowedByPrivileges) return false