Wait for contact sync in MessageReceiver
This commit is contained in:
parent
53e17e8e08
commit
e0ae5fc27c
1 changed files with 4 additions and 5 deletions
|
@ -2745,11 +2745,10 @@ export default class MessageReceiver
|
||||||
return this.handleSentMessage(envelope, sentMessage);
|
return this.handleSentMessage(envelope, sentMessage);
|
||||||
}
|
}
|
||||||
if (syncMessage.contacts) {
|
if (syncMessage.contacts) {
|
||||||
// Note: we do not return here because we don't want to block the next
|
// Note: this method will download attachment and thus might block
|
||||||
// message on this attachment download and a lot of processing of that
|
// message processing, but we would like to fully process contact sync
|
||||||
// attachment.
|
// before moving on since it updates conversation state.
|
||||||
this.handleContacts(envelope, syncMessage.contacts);
|
return this.handleContacts(envelope, syncMessage.contacts);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (syncMessage.groups) {
|
if (syncMessage.groups) {
|
||||||
this.handleGroups(envelope, syncMessage.groups);
|
this.handleGroups(envelope, syncMessage.groups);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue