updating the state rather than calling display directly

This commit is contained in:
Adam Brown 2021-11-18 15:06:43 +00:00
parent be685bc56a
commit dfc67b832c

View file

@ -506,7 +506,7 @@ class RoomDetailFragment @Inject constructor(
private fun onCannotRecord() {
// Update the UI, cancel the animation
views.voiceMessageRecorderView.display(RecordingUiState.None)
textComposerViewModel.handle(TextComposerAction.OnVoiceRecordingUiStateChanged(RecordingUiState.None))
}
private fun acceptIncomingCall(event: RoomDetailViewEvents.DisplayAndAcceptCall) {