mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
add content scanner to the NSE Client
This commit is contained in:
@@ -90,6 +90,12 @@ final nonisolated class NSEUserSession: NSEUserSessionProtocol {
|
|||||||
try await baseClient.restoreSessionWith(session: credentials.restorationToken.session,
|
try await baseClient.restoreSessionWith(session: credentials.restorationToken.session,
|
||||||
roomLoadSettings: .one(roomId: roomID))
|
roomLoadSettings: .one(roomId: roomID))
|
||||||
|
|
||||||
|
// Inject the content scanner so the SDK gates the media it downloads whilst building the notification.
|
||||||
|
if let contentScannerURL = appSettings.contentScannerURL.publisher.value {
|
||||||
|
let contentScanner = ContentScanner(scannerUrl: contentScannerURL.absoluteString)
|
||||||
|
await baseClient.setContentScanner(contentScanner: contentScanner)
|
||||||
|
}
|
||||||
|
|
||||||
notificationClient = try await baseClient.notificationClient(processSetup: .multipleProcesses)
|
notificationClient = try await baseClient.notificationClient(processSetup: .multipleProcesses)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user