Perform client store optimizations when migrating versions.

This commit is contained in:
Stefan Ceriu
2025-12-18 16:36:54 +02:00
committed by Stefan Ceriu
parent 57cd5dd794
commit 8a1d0fe8b1
4 changed files with 80 additions and 0 deletions
@@ -807,6 +807,15 @@ class ClientProxy: ClientProxyProtocol {
}
}
func optimizeStores() async -> Result<Void, ClientProxyError> {
do {
return try await .success(client.optimizeStores())
} catch {
MXLog.error("Failed optimizing client stores with error: \(error)")
return .failure(.sdkError(error))
}
}
func fetchMediaPreviewConfiguration() async -> Result<MediaPreviewConfig?, ClientProxyError> {
do {
let config = try await client.fetchMediaPreviewConfig()