From 1b196aa5a2dd22fb11514e4099a7086375e65af5 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 17 May 2024 10:36:34 +0300 Subject: [PATCH] Fixes #2845 - Fix voice message recoder not showing send message button --- .../Screens/RoomScreen/RoomScreenInteractionHandler.swift | 2 +- changelog.d/2845.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/2845.bugfix diff --git a/ElementX/Sources/Screens/RoomScreen/RoomScreenInteractionHandler.swift b/ElementX/Sources/Screens/RoomScreen/RoomScreenInteractionHandler.swift index deaaca4b3d..2c11217c87 100644 --- a/ElementX/Sources/Screens/RoomScreen/RoomScreenInteractionHandler.swift +++ b/ElementX/Sources/Screens/RoomScreen/RoomScreenInteractionHandler.swift @@ -373,6 +373,7 @@ class RoomScreenInteractionHandler { actionsSubject.send(.composer(action: .setMode(mode: .recordVoiceMessage(state: audioRecordState)))) case .didStopRecording(let previewAudioPlayerState, let url): actionsSubject.send(.composer(action: .setMode(mode: .previewVoiceMessage(state: previewAudioPlayerState, waveform: .url(url), isUploading: false)))) + voiceMessageRecorderObserver = nil case .didFailWithError(let error): switch error { case .audioRecorderError(.recordPermissionNotGranted): @@ -397,7 +398,6 @@ class RoomScreenInteractionHandler { func stopRecordingVoiceMessage() async { await voiceMessageRecorder.stopRecording() - voiceMessageRecorderObserver = nil } func cancelRecordingVoiceMessage() async { diff --git a/changelog.d/2845.bugfix b/changelog.d/2845.bugfix new file mode 100644 index 0000000000..e4812609a2 --- /dev/null +++ b/changelog.d/2845.bugfix @@ -0,0 +1 @@ +Fix voice message recoder not showing send message button \ No newline at end of file