Merge pull request #4240 from nextcloud/bugfix/4238/fixToHideMessageInputWhenNoRestriction

fix to hide messageInputFragment when user has no restriction to write
This commit is contained in:
Julius Linus 2024-09-19 18:48:25 +02:00 committed by GitHub
commit 5351296afd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -577,7 +577,6 @@ class ChatActivity :
invalidateOptionsMenu() invalidateOptionsMenu()
checkShowCallButtons() checkShowCallButtons()
checkShowMessageInputView()
checkLobbyState() checkLobbyState()
updateRoomTimerHandler() updateRoomTimerHandler()
} }
@ -603,6 +602,9 @@ class ChatActivity :
loadAvatarForStatusBar() loadAvatarForStatusBar()
setupSwipeToReply() setupSwipeToReply()
setActionBarTitle() setActionBarTitle()
checkShowCallButtons()
checkLobbyState()
updateRoomTimerHandler() updateRoomTimerHandler()
val urlForChatting = ApiUtils.getUrlForChat(chatApiVersion, conversationUser?.baseUrl, roomToken) val urlForChatting = ApiUtils.getUrlForChat(chatApiVersion, conversationUser?.baseUrl, roomToken)
@ -1892,12 +1894,12 @@ class ChatActivity :
} else { } else {
binding.lobby.lobbyView.visibility = View.GONE binding.lobby.lobbyView.visibility = View.GONE
binding.messagesListView.visibility = View.VISIBLE binding.messagesListView.visibility = View.VISIBLE
binding.fragmentContainerActivityChat.visibility = View.VISIBLE checkShowMessageInputView()
} }
} else { } else {
binding.lobby.lobbyView.visibility = View.GONE binding.lobby.lobbyView.visibility = View.GONE
binding.messagesListView.visibility = View.VISIBLE binding.messagesListView.visibility = View.VISIBLE
binding.fragmentContainerActivityChat.visibility = View.VISIBLE checkShowMessageInputView()
} }
} }