mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Address the real lifetime issue of the SDK's Client by making Context.mediaProvider weak. (#4466)
This reverts commit 927aea4bfe.
This commit is contained in:
@@ -396,7 +396,7 @@ struct LoadableImage_Previews: PreviewProvider, TestablePreview {
|
||||
}
|
||||
|
||||
static func makeMediaProvider(isLoading: Bool = false) -> MediaProviderProtocol {
|
||||
let mediaProvider = MediaProviderMock(configuration: .init())
|
||||
let mediaProvider = MediaProviderMock(.init())
|
||||
|
||||
if isLoading {
|
||||
mediaProvider.imageFromSourceSizeClosure = { _, _ in nil }
|
||||
|
||||
Reference in New Issue
Block a user