Fix reloading account token

This commit is contained in:
Arkadiusz Fal
2022-08-31 22:00:24 +02:00
parent c24b561c13
commit dfe3fb81ea
2 changed files with 4 additions and 1 deletions

View File

@@ -226,10 +226,12 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
print("updating invidious token")
let sid = String(cookies[substringRange])
AccountsModel.setToken(self.account, sid)
self.configure()
self.objectWillChange.send()
} else {
presentTokenUpdateFailedAlert(nil, "Could not extract SID from received cookies: \(cookies)")
}
self.configure()
}
}