mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update the SDK. (#3565)
* Update the SDK. * Add mockMXC URLs to fix all the crashes during tests. * Refactor Voice Messages to not use a MediaSource for local files.
This commit is contained in:
@@ -24,7 +24,10 @@ struct MediaSourceProxy: Hashable {
|
||||
}
|
||||
|
||||
init(url: URL, mimeType: String?) {
|
||||
underlyingSource = mediaSourceFromUrl(url: url.absoluteString)
|
||||
guard let mediaSource = try? MediaSource.fromUrl(url: url.absoluteString) else {
|
||||
fatalError("Unable to create MediaSource from URL: \(url.absoluteString)")
|
||||
}
|
||||
underlyingSource = mediaSource
|
||||
self.url = URL(string: underlyingSource.url())
|
||||
self.mimeType = mimeType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user