Skip to content

Commit

Permalink
fix: Outlook sync not working in some cases (#2894)
Browse files Browse the repository at this point in the history
* change startOutlookCalendarUrlHandler() call order due to race condition on startup
  • Loading branch information
jeanfbrito authored May 21, 2024
1 parent 525d5aa commit 9bbcf13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const start = async (): Promise<void> => {
setupMainErrorHandling();

createRootWindow();
startOutlookCalendarUrlHandler();
attachGuestWebContentsEvents();
await showRootWindow();

Expand Down Expand Up @@ -98,7 +99,6 @@ const start = async (): Promise<void> => {
watchAndPersistChanges();
handleJitsiDesktopCapturerGetSources();
handleDesktopCapturerGetSources();
startOutlookCalendarUrlHandler();
startDocumentViewerHandler();
checkSupportedVersionServers();

Expand Down
1 change: 0 additions & 1 deletion src/outlookCalendar/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ export const clearOutlookCredentials = (): void => {
};

export const setUserToken = (token: string, userId: string): void => {
console.log('setUserToken on preload', token, userId);
ipcRenderer.invoke('outlook-calendar/set-user-token', token, userId);
};

0 comments on commit 9bbcf13

Please sign in to comment.