When joining a room, the message composer should be visible once the room loads (#7510)

This commit is contained in:
Jorge Martin Espinosa 2022-11-07 11:58:34 +01:00 committed by GitHub
parent ac0d823c88
commit f0340d5ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

1
changelog.d/7509.bugfix Normal file
View file

@ -0,0 +1 @@
When joining a room, the message composer is displayed once the room is loaded.

View file

@ -1169,6 +1169,9 @@ class TimelineFragment :
lazyLoadedViews.inviteView(false)?.isVisible = false
if (mainState.tombstoneEvent == null) {
views.composerContainer.isInvisible = !messageComposerState.isComposerVisible
views.voiceMessageRecorderContainer.isVisible = messageComposerState.isVoiceMessageRecorderVisible
when (messageComposerState.canSendMessage) {
CanSendStatus.Allowed -> {
NotificationAreaView.State.Hidden
@ -1224,6 +1227,7 @@ class TimelineFragment :
private fun FragmentTimelineBinding.hideComposerViews() {
composerContainer.isVisible = false
voiceMessageRecorderContainer.isVisible = false
}
private fun renderTypingMessageNotification(roomSummary: RoomSummary?, state: RoomDetailViewState) {