Skip to content

Commit

Permalink
Fixes #2845 - Fix voice message recoder not showing send message button
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed May 17, 2024
1 parent 8da1752 commit 1b196aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -397,7 +398,6 @@ class RoomScreenInteractionHandler {

func stopRecordingVoiceMessage() async {
await voiceMessageRecorder.stopRecording()
voiceMessageRecorderObserver = nil
}

func cancelRecordingVoiceMessage() async {
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2845.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix voice message recoder not showing send message button

0 comments on commit 1b196aa

Please sign in to comment.