Skip to content

Commit

Permalink
Merge pull request #4252 from nextcloud/backport/4240/stable-20.0
Browse files Browse the repository at this point in the history
[stable-20.0] fix to hide messageInputFragment when user has no restriction to write
  • Loading branch information
mahibi authored Sep 20, 2024
2 parents 4eefebe + de6cfab commit 6b0f6d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ class ChatActivity :

invalidateOptionsMenu()
checkShowCallButtons()
checkShowMessageInputView()
checkLobbyState()
updateRoomTimerHandler()
}
Expand All @@ -603,6 +602,9 @@ class ChatActivity :
loadAvatarForStatusBar()
setupSwipeToReply()
setActionBarTitle()

checkShowCallButtons()
checkLobbyState()
updateRoomTimerHandler()

val urlForChatting = ApiUtils.getUrlForChat(chatApiVersion, conversationUser?.baseUrl, roomToken)
Expand Down Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 6b0f6d0

Please sign in to comment.