Display the store sizes under the developer options menu

This commit is contained in:
Stefan Ceriu
2025-12-18 17:49:39 +02:00
committed by Stefan Ceriu
parent 8a1d0fe8b1
commit 53a20f2a89
9 changed files with 128 additions and 8 deletions
@@ -816,6 +816,15 @@ class ClientProxy: ClientProxyProtocol {
}
}
func storeSizes() async -> Result<StoreSizes, ClientProxyError> {
do {
return try await .success(client.getStoreSizes())
} 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()