mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Change order of syncs during linking
This commit is contained in:
@@ -2610,7 +2610,7 @@ export default class MessageReceiver
|
||||
envelope: ProcessedEnvelope,
|
||||
contacts: Proto.SyncMessage.IContacts
|
||||
): Promise<void> {
|
||||
log.info('contact sync');
|
||||
log.info('MessageReceiver: handleContacts');
|
||||
const { blob } = contacts;
|
||||
if (!blob) {
|
||||
throw new Error('MessageReceiver.handleContacts: blob field was missing');
|
||||
@@ -2631,11 +2631,11 @@ export default class MessageReceiver
|
||||
contactDetails = contactBuffer.next();
|
||||
}
|
||||
|
||||
const finalEvent = new ContactSyncEvent();
|
||||
results.push(this.dispatchAndWait(finalEvent));
|
||||
|
||||
await Promise.all(results);
|
||||
|
||||
const finalEvent = new ContactSyncEvent();
|
||||
await this.dispatchAndWait(finalEvent);
|
||||
|
||||
log.info('handleContacts: finished');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user