[merge] Fix initial send button color
Change-Id: I0361ab015bb4f8e1a31c92dcdbc2dec7cc52fb31
This commit is contained in:
parent
4065d21b7e
commit
476f60bd04
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue