Avoid simultaneous state changes (#6986)

This commit is contained in:
Yoan Pintas
2022-10-27 17:15:18 +02:00
committed by GitHub
parent fb2c7d7708
commit 3226cee25b
2 changed files with 66 additions and 76 deletions
@@ -212,7 +212,6 @@ class VoiceBroadcastRecorderService: VoiceBroadcastRecorderServiceProtocol {
self.voiceBroadcastService?.sendChunkOfVoiceBroadcast(audioFileLocalURL: convertedUrl,
mimeType: "audio/mp4",
duration: UInt(duration * 1000),
samples: nil,
sequence: UInt(sequence)) { eventId in
MXLog.debug("[VoiceBroadcastRecorderService] Send voice broadcast chunk with success.")
self.deleteRecording(at: convertedUrl)