From 81ca398a3589d7ae771cfb97248f1155eb12b5b8 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 16 Oct 2019 16:22:13 -0400 Subject: [PATCH] (fix) Reload Web calendars on CAS login --- UI/MainUI/SOGoRootPage.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UI/MainUI/SOGoRootPage.m b/UI/MainUI/SOGoRootPage.m index 4b33cfe50..8ac49db3a 100644 --- a/UI/MainUI/SOGoRootPage.m +++ b/UI/MainUI/SOGoRootPage.m @@ -317,7 +317,9 @@ { WOResponse *response; NSString *login, *logoutRequest, *newLocation, *oldLocation, *ticket; + SOGoAppointmentFolders *calendars; SOGoCASSession *casSession; + SOGoUser *loggedInUser; SOGoWebAuthenticator *auth; WOCookie *casCookie, *casLocationCookie; WORequest *rq; @@ -381,6 +383,11 @@ newLocation = [NSString stringWithFormat: @"%@%@", oldLocation, [login stringByEscapingURL]]; } + + loggedInUser = [SOGoUser userWithLogin: login]; + calendars = [loggedInUser calendarsFolderInContext: context]; + if ([calendars respondsToSelector: @selector (reloadWebCalendars:)]) + [calendars reloadWebCalendars: NO]; } else {