mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2024-12-29 18:23:24 +01:00
Added connections
This commit is contained in:
parent
906cec2835
commit
4a5f8fd680
@ -227,6 +227,10 @@ struct AddInstanceView: View {
|
||||
let client = Client(server: client.server, oauthToken: oauthToken)
|
||||
let account: Account = try await client.get(endpoint: Accounts.verifyCredentials)
|
||||
let appAcc = AppAccount(server: client.server, accountName: "\(account.acct)@\(client.server)", oauthToken: oauthToken)
|
||||
|
||||
let connections: [String] = try await client.get(endpoint: Instances.peers)
|
||||
client.addConnections(connections)
|
||||
|
||||
appAcc.saveAsCurrent()
|
||||
AccountManager.shared.setClient(client)
|
||||
AccountManager.shared.setAccount(account)
|
||||
|
Loading…
Reference in New Issue
Block a user