link: send contacts after closed groups to minimize visible afr

pull/1137/head
Audric Ackermann 5 years ago
parent 9c2ec60f3a
commit 8d99d22ec6
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -619,10 +619,14 @@
}
);
// Send sync messages
// bad hack to send sync messages when secondary device is ready to process them
setTimeout(async () => {
const conversations = window.getConversations().models;
textsecure.messaging.sendContactSyncMessage(conversations);
textsecure.messaging.sendGroupSyncMessage(conversations);
textsecure.messaging.sendOpenGroupsSyncMessage(conversations);
await textsecure.messaging.sendGroupSyncMessage(conversations);
await textsecure.messaging.sendOpenGroupsSyncMessage(conversations);
await textsecure.messaging.sendContactSyncMessage(conversations);
}, 5000);
},
validatePubKeyHex(pubKey) {
const c = new Whisper.Conversation({

Loading…
Cancel
Save