Эх сурвалжийг харах

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

fix displaying of message delete-button
Andy Scherzinger 3 жил өмнө
parent
commit
9d11d7bac9

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -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