mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
Fixed message request UI still visible after tapping on accept
This commit is contained in:
parent
abd689cfd3
commit
2b0e8a966a
@ -1030,7 +1030,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
.map { it.messageRequestState }
|
||||
.distinctUntilChanged()
|
||||
.collectLatest { state ->
|
||||
binding.messageRequestBar.isVisible = state != MessageRequestUiState.Invisible
|
||||
binding.messageRequestBar.isVisible = state is MessageRequestUiState.Visible
|
||||
|
||||
if (state is MessageRequestUiState.Visible) {
|
||||
binding.sendAcceptsTextView.setText(state.acceptButtonText)
|
||||
|
Loading…
Reference in New Issue
Block a user