only attempt to sync when signed in
parent
a60e261d78
commit
fe8626cf9d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue