adding sending of voice message on send pressed
This commit is contained in:
parent
c5746a59ae
commit
16ca7d5040
|
@ -721,6 +721,7 @@ class RoomDetailFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onSendVoiceMessage() {
|
override fun onSendVoiceMessage() {
|
||||||
|
roomDetailViewModel.handle(RoomDetailAction.EndRecordingVoiceMessage(isCancelled = false))
|
||||||
updateRecordingUiState(RecordingUiState.None)
|
updateRecordingUiState(RecordingUiState.None)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -730,13 +731,13 @@ class RoomDetailFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onRecordingLimitReached() {
|
override fun onRecordingLimitReached() {
|
||||||
updateRecordingUiState(RecordingUiState.Playback)
|
|
||||||
roomDetailViewModel.handle(RoomDetailAction.PauseRecordingVoiceMessage)
|
roomDetailViewModel.handle(RoomDetailAction.PauseRecordingVoiceMessage)
|
||||||
|
updateRecordingUiState(RecordingUiState.Playback)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onRecordingWaveformClicked() {
|
override fun onRecordingWaveformClicked() {
|
||||||
updateRecordingUiState(RecordingUiState.Playback)
|
|
||||||
roomDetailViewModel.handle(RoomDetailAction.PauseRecordingVoiceMessage)
|
roomDetailViewModel.handle(RoomDetailAction.PauseRecordingVoiceMessage)
|
||||||
|
updateRecordingUiState(RecordingUiState.Playback)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updateRecordingUiState(state: RecordingUiState) {
|
private fun updateRecordingUiState(state: RecordingUiState) {
|
||||||
|
|
Loading…
Reference in New Issue