cal sync improvements

This commit is contained in:
Milan Paunovic
2024-11-04 00:24:31 +01:00
parent f1b0bcd32d
commit a577bfb23f
3 changed files with 239 additions and 86 deletions

View File

@ -308,8 +308,8 @@ export const useCalSync = () => {
const handleNotification = async (notification: Notifications.Notification) => {
const eventId = notification?.request?.content?.data?.eventId;
await resyncAllCalendars();
// queryClient.invalidateQueries(["events"]);
// await resyncAllCalendars();
queryClient.invalidateQueries(["events"]);
};
const sub = Notifications.addNotificationReceivedListener(handleNotification);