Fix voice message record button wrong visibility #4283
This commit is contained in:
parent
7c9c4ecf5f
commit
d33daaf799
|
@ -0,0 +1 @@
|
|||
Fix voice message record button wrong visibility
|
|
@ -1390,7 +1390,7 @@ class RoomDetailFragment @Inject constructor(
|
|||
lazyLoadedViews.inviteView(false)?.isVisible = false
|
||||
if (mainState.tombstoneEvent == null) {
|
||||
views.composerLayout.isInvisible = !textComposerState.isComposerVisible
|
||||
views.voiceMessageRecorderView.isVisible = !textComposerState.isSendButtonVisible
|
||||
views.voiceMessageRecorderView.isVisible = textComposerState.isVoiceMessageRecorderVisible
|
||||
views.composerLayout.views.sendButton.isInvisible = !textComposerState.isSendButtonVisible
|
||||
views.composerLayout.setRoomEncrypted(summary.isEncrypted)
|
||||
// views.composerLayout.alwaysShowSendButton = false
|
||||
|
|
|
@ -49,8 +49,8 @@ data class TextComposerViewState(
|
|||
val sendMode: SendMode = SendMode.REGULAR("", false)
|
||||
) : MavericksState {
|
||||
|
||||
val isComposerVisible: Boolean
|
||||
get() = canSendMessage && !isVoiceRecording
|
||||
val isComposerVisible = canSendMessage && !isVoiceRecording
|
||||
val isVoiceMessageRecorderVisible = canSendMessage && !isSendButtonVisible
|
||||
|
||||
constructor(args: RoomDetailArgs) : this(roomId = args.roomId)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue