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