|
|
@@ -6642,25 +6642,20 @@ private extension ViewController {
|
|
6642
|
6642
|
}
|
|
6643
|
6643
|
|
|
6644
|
6644
|
private func performGoogleSignOut() {
|
|
6645
|
|
- Task { [weak self] in
|
|
6646
|
|
- guard let self else { return }
|
|
6647
|
|
- do {
|
|
6648
|
|
- try await self.googleOAuth.signOutAndRevoke()
|
|
6649
|
|
- await MainActor.run {
|
|
6650
|
|
- self.applyGoogleProfile(nil)
|
|
6651
|
|
- self.updateGoogleAuthButtonTitle()
|
|
6652
|
|
- self.pageCache[.joinMeetings] = nil
|
|
6653
|
|
- self.pageCache[.photo] = nil
|
|
6654
|
|
- self.pageCache[.video] = nil
|
|
6655
|
|
- self.pageCache[.settings] = nil
|
|
6656
|
|
- self.showSidebarPage(self.selectedSidebarPage)
|
|
6657
|
|
- }
|
|
6658
|
|
- await self.loadSchedule()
|
|
6659
|
|
- } catch {
|
|
6660
|
|
- await MainActor.run {
|
|
6661
|
|
- self.showSimpleError("Couldn’t logout Google account.", error: error)
|
|
6662
|
|
- }
|
|
|
6645
|
+ do {
|
|
|
6646
|
+ try googleOAuth.signOut()
|
|
|
6647
|
+ applyGoogleProfile(nil)
|
|
|
6648
|
+ updateGoogleAuthButtonTitle()
|
|
|
6649
|
+ pageCache[.joinMeetings] = nil
|
|
|
6650
|
+ pageCache[.photo] = nil
|
|
|
6651
|
+ pageCache[.video] = nil
|
|
|
6652
|
+ pageCache[.settings] = nil
|
|
|
6653
|
+ showSidebarPage(selectedSidebarPage)
|
|
|
6654
|
+ Task { [weak self] in
|
|
|
6655
|
+ await self?.loadSchedule()
|
|
6663
|
6656
|
}
|
|
|
6657
|
+ } catch {
|
|
|
6658
|
+ showSimpleError("Couldn’t logout Google account.", error: error)
|
|
6664
|
6659
|
}
|
|
6665
|
6660
|
}
|
|
6666
|
6661
|
|