[merge] Fix initial send button color

Change-Id: I0361ab015bb4f8e1a31c92dcdbc2dec7cc52fb31
This commit is contained in:
SpiritCroc 2023-02-23 12:18:45 +01:00
parent 4065d21b7e
commit 476f60bd04
1 changed files with 5 additions and 0 deletions

View File

@ -213,6 +213,11 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
} }
} }
// Initial send button color
withState(messageComposerViewModel) {
handleSendButtonVisibilityChanged(MessageComposerViewEvents.AnimateSendButtonVisibility(it.isSendButtonVisible, it.isSendButtonActive))
}
messageComposerViewModel.onEach(MessageComposerViewState::sendMode, MessageComposerViewState::canSendMessage) { mode, canSend -> messageComposerViewModel.onEach(MessageComposerViewState::sendMode, MessageComposerViewState::canSendMessage) { mode, canSend ->
if (!canSend.boolean()) { if (!canSend.boolean()) {
return@onEach return@onEach