mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Perform client store optimizations when migrating versions.
This commit is contained in:
committed by
Stefan Ceriu
parent
57cd5dd794
commit
8a1d0fe8b1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user