Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop, Mobile: Start synchronisation just after login is complete #10574

Merged
merged 3 commits into from
Jun 14, 2024

Conversation

pedr
Copy link
Collaborator

@pedr pedr commented Jun 12, 2024

It's pretty straight forward, calling the command synchronize after login is confirmed

@pedr pedr requested a review from laurent22 June 12, 2024 12:24
@@ -90,6 +91,7 @@ const JoplinCloudScreenComponent = (props: Props) => {
if (response && response.success) {
dispatch({ type: 'COMPLETED' });
clearInterval(interval);
void CommandService.instance().execute('synchronize');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it definitely work on mobile too? Since this command contains reducer actions that don't exist in mobile, and it's also quite new the support for commands on mobile

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I tested it and it was working. I will double-check if any errors are happening that I didn't see.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find any errors. I could change the line to:
void reg.scheduleSync(0);

Since ultimately it is what is happening when executing the command.

@laurent22 laurent22 merged commit 4952980 into laurent22:dev Jun 14, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants