mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Fixes #2845 - Fix voice message recoder not showing send message button
This commit is contained in:
@@ -373,6 +373,7 @@ class RoomScreenInteractionHandler {
|
|||||||
actionsSubject.send(.composer(action: .setMode(mode: .recordVoiceMessage(state: audioRecordState))))
|
actionsSubject.send(.composer(action: .setMode(mode: .recordVoiceMessage(state: audioRecordState))))
|
||||||
case .didStopRecording(let previewAudioPlayerState, let url):
|
case .didStopRecording(let previewAudioPlayerState, let url):
|
||||||
actionsSubject.send(.composer(action: .setMode(mode: .previewVoiceMessage(state: previewAudioPlayerState, waveform: .url(url), isUploading: false))))
|
actionsSubject.send(.composer(action: .setMode(mode: .previewVoiceMessage(state: previewAudioPlayerState, waveform: .url(url), isUploading: false))))
|
||||||
|
voiceMessageRecorderObserver = nil
|
||||||
case .didFailWithError(let error):
|
case .didFailWithError(let error):
|
||||||
switch error {
|
switch error {
|
||||||
case .audioRecorderError(.recordPermissionNotGranted):
|
case .audioRecorderError(.recordPermissionNotGranted):
|
||||||
@@ -397,7 +398,6 @@ class RoomScreenInteractionHandler {
|
|||||||
|
|
||||||
func stopRecordingVoiceMessage() async {
|
func stopRecordingVoiceMessage() async {
|
||||||
await voiceMessageRecorder.stopRecording()
|
await voiceMessageRecorder.stopRecording()
|
||||||
voiceMessageRecorderObserver = nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func cancelRecordingVoiceMessage() async {
|
func cancelRecordingVoiceMessage() async {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fix voice message recoder not showing send message button
|
||||||
Reference in New Issue
Block a user