mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Prevent multiple conversion of the same voice message audio file. (#1887)
This commit is contained in:
@@ -47,7 +47,11 @@ struct MockMediaProvider: MediaProviderProtocol {
|
||||
return .success(data)
|
||||
}
|
||||
|
||||
var loadFileFromSourceReturnValue: MediaFileHandleProxy?
|
||||
func loadFileFromSource(_ source: MediaSourceProxy, body: String?) async -> Result<MediaFileHandleProxy, MediaProviderError> {
|
||||
.failure(.failedRetrievingFile)
|
||||
if let loadFileFromSourceReturnValue {
|
||||
return .success(loadFileFromSourceReturnValue)
|
||||
}
|
||||
return .failure(.failedRetrievingFile)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user