|
|
@@ -6642,25 +6642,20 @@ private extension ViewController {
|
|
|
}
|
|
|
|
|
|
private func performGoogleSignOut() {
|
|
|
- Task { [weak self] in
|
|
|
- guard let self else { return }
|
|
|
- do {
|
|
|
- try await self.googleOAuth.signOutAndRevoke()
|
|
|
- await MainActor.run {
|
|
|
- self.applyGoogleProfile(nil)
|
|
|
- self.updateGoogleAuthButtonTitle()
|
|
|
- self.pageCache[.joinMeetings] = nil
|
|
|
- self.pageCache[.photo] = nil
|
|
|
- self.pageCache[.video] = nil
|
|
|
- self.pageCache[.settings] = nil
|
|
|
- self.showSidebarPage(self.selectedSidebarPage)
|
|
|
- }
|
|
|
- await self.loadSchedule()
|
|
|
- } catch {
|
|
|
- await MainActor.run {
|
|
|
- self.showSimpleError("Couldn’t logout Google account.", error: error)
|
|
|
- }
|
|
|
+ do {
|
|
|
+ try googleOAuth.signOut()
|
|
|
+ applyGoogleProfile(nil)
|
|
|
+ updateGoogleAuthButtonTitle()
|
|
|
+ pageCache[.joinMeetings] = nil
|
|
|
+ pageCache[.photo] = nil
|
|
|
+ pageCache[.video] = nil
|
|
|
+ pageCache[.settings] = nil
|
|
|
+ showSidebarPage(selectedSidebarPage)
|
|
|
+ Task { [weak self] in
|
|
|
+ await self?.loadSchedule()
|
|
|
}
|
|
|
+ } catch {
|
|
|
+ showSimpleError("Couldn’t logout Google account.", error: error)
|
|
|
}
|
|
|
}
|
|
|
|