diff --git a/app/src/backend.ts b/app/src/backend.ts index 642727c..4d22b5d 100644 --- a/app/src/backend.ts +++ b/app/src/backend.ts @@ -66,6 +66,10 @@ export class Backend extends EventEmitter { } public async sync() { + if (!this.isAuthenticated) { + return; + } + const response = await this.post(endpoint + '/sync', {}); for (const chatID of Object.keys(response)) {