mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-25 08:23:28 +00:00
perf(calendar(web)): initiate Web calendars reload from the frontend
The Web calendars subsciptions marked to be reloaded on login are no longer reloaded from the backend; the sync operation is now activated from the frontend in XHR calls to avoid blocking the Web interface. Fixes #4939
This commit is contained in:
@@ -1567,6 +1567,14 @@ static NSArray *reminderValues = nil;
|
||||
|
||||
if ((v = [o objectForKey: @"settings"]))
|
||||
{
|
||||
// Remove ReloadWebCalendars if necessary
|
||||
NSMutableDictionary *calendarModule = [o objectForKey: @"Calendar"];
|
||||
if (calendarModule && [calendarModule objectForKey: @"ReloadWebCalendars"] == nil)
|
||||
{
|
||||
calendarModule = [[user userSettings] objectForKey: @"Calendar"];
|
||||
[calendarModule removeObjectForKey: @"ReloadWebCalendars"];
|
||||
}
|
||||
|
||||
[[[user userSettings] source] setValues: v];
|
||||
[[user userSettings] synchronize];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user