fixing message edits thinking there's an active voice recording
This commit is contained in:
parent
251c54ecfe
commit
56cfee572f
@ -58,10 +58,7 @@ data class MessageComposerViewState(
|
|||||||
VoiceMessageRecorderView.RecordingUiState.Started -> true
|
VoiceMessageRecorderView.RecordingUiState.Started -> true
|
||||||
}
|
}
|
||||||
|
|
||||||
val isVoiceMessageIdle = when (voiceRecordingUiState) {
|
val isVoiceMessageIdle = !isVoiceRecording
|
||||||
VoiceMessageRecorderView.RecordingUiState.None, VoiceMessageRecorderView.RecordingUiState.Cancelled -> false
|
|
||||||
else -> true
|
|
||||||
}
|
|
||||||
|
|
||||||
val isComposerVisible = canSendMessage && !isVoiceRecording
|
val isComposerVisible = canSendMessage && !isVoiceRecording
|
||||||
val isVoiceMessageRecorderVisible = canSendMessage && !isSendButtonVisible
|
val isVoiceMessageRecorderVisible = canSendMessage && !isSendButtonVisible
|
||||||
|
Loading…
Reference in New Issue
Block a user