mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Account URL is now fetched async (#2769)
This commit is contained in:
@@ -2104,14 +2104,14 @@ class ClientProxyMock: ClientProxyProtocol {
|
||||
}
|
||||
}
|
||||
}
|
||||
var accountURLActionClosure: ((AccountManagementAction) -> URL?)?
|
||||
var accountURLActionClosure: ((AccountManagementAction) async -> URL?)?
|
||||
|
||||
func accountURL(action: AccountManagementAction) -> URL? {
|
||||
func accountURL(action: AccountManagementAction) async -> URL? {
|
||||
accountURLActionCallsCount += 1
|
||||
accountURLActionReceivedAction = action
|
||||
accountURLActionReceivedInvocations.append(action)
|
||||
if let accountURLActionClosure = accountURLActionClosure {
|
||||
return accountURLActionClosure(action)
|
||||
return await accountURLActionClosure(action)
|
||||
} else {
|
||||
return accountURLActionReturnValue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user