Fix playback and recording of voice messages (#1948)

This commit is contained in:
Nicolas Mauri
2023-10-24 18:49:42 +02:00
committed by GitHub
parent 37f1a79a11
commit f9ad44f96a
10 changed files with 115 additions and 55 deletions
@@ -447,11 +447,11 @@ class AudioRecorderMock: AudioRecorderProtocol {
var deleteRecordingCalled: Bool {
return deleteRecordingCallsCount > 0
}
var deleteRecordingClosure: (() -> Void)?
var deleteRecordingClosure: (() async -> Void)?
func deleteRecording() {
func deleteRecording() async {
deleteRecordingCallsCount += 1
deleteRecordingClosure?()
await deleteRecordingClosure?()
}
//MARK: - averagePowerForChannelNumber