mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 06:15:12 +00:00
fix displaying of message delete-button
this will fix to hide the delete-button when the message is not from the current user and the user not a moderator. see https://nextcloud-talk.readthedocs.io/en/latest/chat/#deleting-a-chat-message Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
a8f95247f4
commit
402325ffb5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user