mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +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()
|
||||
|
||||
@@ -215,6 +215,8 @@ protocol ClientProxyProtocol: AnyObject {
|
||||
|
||||
@discardableResult func clearCaches() async -> Result<Void, ClientProxyError>
|
||||
|
||||
@discardableResult func optimizeStores() async -> Result<Void, ClientProxyError>
|
||||
|
||||
func fetchMediaPreviewConfiguration() async -> Result<MediaPreviewConfig?, ClientProxyError>
|
||||
|
||||
// MARK: - Ignored users
|
||||
|
||||
Reference in New Issue
Block a user