From fe8626cf9d3d223732a2fc6c8d00eac2874e7b3e Mon Sep 17 00:00:00 2001 From: Cogent Apps Date: Fri, 17 Mar 2023 19:06:36 +0000 Subject: [PATCH] only attempt to sync when signed in --- app/src/backend.ts | 4 ++++ 1 file changed, 4 insertions(+) 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)) {