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:
@@ -7,11 +7,17 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension MediaProviderProtocol where Self == MediaProviderMock {
|
||||
static var mock: MediaProviderMock { .shared }
|
||||
}
|
||||
|
||||
extension MediaProviderMock {
|
||||
static let shared = MediaProviderMock(.init())
|
||||
|
||||
struct Configuration { }
|
||||
|
||||
// swiftlint:disable:next cyclomatic_complexity
|
||||
convenience init(configuration: Configuration) {
|
||||
convenience init(_ configuration: Configuration) {
|
||||
self.init()
|
||||
|
||||
imageFromSourceSizeClosure = { mediaSource, _ in
|
||||
|
||||
Reference in New Issue
Block a user