Browse Source

update permissions in getRoomInfo

so they are updated on the fly..

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 years ago
parent
commit
7c4e7c22df

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

@@ -343,8 +343,11 @@ class ChatController(args: Bundle) :
                                 " sessionId: " + currentConversation?.sessionId
                         )
                         loadAvatarForStatusBar()
-
                         setTitle()
+
+                        hasChatPermission =
+                            AttendeePermissionsUtil(currentConversation!!.permissions).hasChatPermission(conversationUser)
+
                         try {
                             setupMentionAutocomplete()
                             checkShowCallButtons()