Fix warning

This commit is contained in:
Lumaa 2024-01-25 01:55:18 +01:00
parent b1d6487d64
commit 4bda91845a

View File

@ -230,12 +230,14 @@ struct AccountView: View {
Task {
let endpoint: Endpoint = isFollowing ? Accounts.unfollow(id: account.id) : Accounts.follow(id: account.id, notify: false, reblogs: true)
HapticManager.playHaptics(haptics: Haptic.tap)
try await client.post(endpoint: endpoint) // Notify off until APNs? | Reblogs on by default (later changeable)
_ = try await client.post(endpoint: endpoint) // Notify off until APNs? | Reblogs on by default (later changeable)
isFollowing = !isFollowing
}
}
}
func reloadUser() async {
if let client = accountManager.getClient() {
let userAcc = accountManager.getAccount()