fix: trigger sync and initial sogs polling after app start

pull/2414/head
Audric Ackermann 3 years ago
parent 18ab715e93
commit e6b0315a25

@ -223,10 +223,14 @@ const doAppStartUp = () => {
void setupTheme();
// this generates the key to encrypt attachments locally
void Data.generateAttachmentKeyIfEmpty();
void getOpenGroupManager().startPolling();
global.setTimeout(() => {
void getOpenGroupManager().startPolling();
}, 10000);
// trigger a sync message if needed for our other devices
void triggerSyncIfNeeded();
global.setTimeout(() => {
void triggerSyncIfNeeded();
}, 20000);
void getSwarmPollingInstance().start();
void loadDefaultRooms();

Loading…
Cancel
Save