Better logging for expiration timer updates

This commit is contained in:
Fedor Indutny 2022-06-20 15:43:16 -07:00 committed by GitHub
parent f9163f410e
commit 35e5eb847a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 84 additions and 54 deletions

View file

@ -2723,7 +2723,10 @@ export default class MessageReceiver
const contactBuffer = new ContactBuffer(attachmentPointer.data);
let contactDetails = contactBuffer.next();
while (contactDetails !== undefined) {
const contactEvent = new ContactEvent(contactDetails);
const contactEvent = new ContactEvent(
contactDetails,
envelope.receivedAtCounter
);
results.push(this.dispatchAndWait(contactEvent));
contactDetails = contactBuffer.next();
@ -2767,10 +2770,13 @@ export default class MessageReceiver
continue;
}
const ev = new GroupEvent({
...groupDetails,
id: Bytes.toBinary(id),
});
const ev = new GroupEvent(
{
...groupDetails,
id: Bytes.toBinary(id),
},
envelope.receivedAtCounter
);
const promise = this.dispatchAndWait(ev).catch(e => {
log.error('error processing group', e);
});