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:
@@ -281,8 +281,8 @@ class ClientProxy: ClientProxyProtocol {
|
||||
}
|
||||
}
|
||||
|
||||
func accountURL(action: AccountManagementAction) -> URL? {
|
||||
try? client.accountUrl(action: action).flatMap(URL.init(string:))
|
||||
func accountURL(action: AccountManagementAction) async -> URL? {
|
||||
try? await client.accountUrl(action: action).flatMap(URL.init(string:))
|
||||
}
|
||||
|
||||
func createDirectRoomIfNeeded(with userID: String, expectedRoomName: String?) async -> Result<(roomID: String, isNewRoom: Bool), ClientProxyError> {
|
||||
|
||||
@@ -121,7 +121,7 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
|
||||
|
||||
func stopSync()
|
||||
|
||||
func accountURL(action: AccountManagementAction) -> URL?
|
||||
func accountURL(action: AccountManagementAction) async -> URL?
|
||||
|
||||
func createDirectRoomIfNeeded(with userID: String, expectedRoomName: String?) async -> Result<(roomID: String, isNewRoom: Bool), ClientProxyError>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user