contactSync should depend on syncMessage.complete
This commit is contained in:
parent
299044f89f
commit
c42df6312e
3 changed files with 46 additions and 29 deletions
|
@ -3070,6 +3070,7 @@ export default class MessageReceiver
|
|||
|
||||
const contactSync = new ContactSyncEvent(
|
||||
Array.from(contactBuffer),
|
||||
Boolean(contacts.complete),
|
||||
envelope.receivedAtCounter
|
||||
);
|
||||
await this.dispatchAndWait(contactSync);
|
||||
|
|
|
@ -76,6 +76,7 @@ export class ErrorEvent extends Event {
|
|||
export class ContactSyncEvent extends Event {
|
||||
constructor(
|
||||
public readonly contacts: ReadonlyArray<ModifiedContactDetails>,
|
||||
public readonly complete: boolean,
|
||||
public readonly receivedAtCounter: number
|
||||
) {
|
||||
super('contactSync');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue