mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Detach the Client's cacheAccountURL call
So it doesn't block service state transitions while hitting the network.
This commit is contained in:
@@ -1177,7 +1177,8 @@ class ClientProxy: ClientProxyProtocol {
|
||||
|
||||
// If we are using OAuth we want to cache the account management URL in volatile memory on the SDK side.
|
||||
// To avoid the cache being invalidated while the app is backgrounded, we cache at every sync start.
|
||||
await cacheAccountURL()
|
||||
// Fire and forget as it might hit the network.
|
||||
Task { await cacheAccountURL() }
|
||||
|
||||
// Nudge the send queue listener to re-evaluate now that we're running; a resume doesn't otherwise
|
||||
// emit, and the SDK only re-enables queues when client.resume() runs (gated behind the flag).
|
||||
|
||||
Reference in New Issue
Block a user