You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Desktop, Mobile: Fixes #10645: Show notification in case Joplin Cloud credential is not valid anymore (#10649)
This commit is contained in:
@@ -524,6 +524,9 @@ export default class Synchronizer {
|
||||
// await uploadSyncInfo(this.api(), remoteInfo);
|
||||
}
|
||||
} catch (error) {
|
||||
if (error.code === 403) {
|
||||
this.dispatch({ type: 'MUST_AUTHENTICATE', value: true });
|
||||
}
|
||||
if (error.code === 'outdatedSyncTarget') {
|
||||
Setting.setValue('sync.upgradeState', Setting.SYNC_UPGRADE_STATE_SHOULD_DO);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user