mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 06:47:12 +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:
1 parent
ef64c13410
commit
f017c42608
3 files changed
+61
-13
No files matched your search
@@ -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