only attempt to sync when signed in
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user