mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-02 05:01:07 +03:00
[merge] Fix initial send button color
Change-Id: I0361ab015bb4f8e1a31c92dcdbc2dec7cc52fb31
This commit is contained in:
parent
4065d21b7e
commit
476f60bd04
1 changed files with 5 additions and 0 deletions
|
@ -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 ->
|
||||
if (!canSend.boolean()) {
|
||||
return@onEach
|
||||
|
|
Loading…
Add table
Reference in a new issue