Exclude chatItems without an author during export

This commit is contained in:
trevor-signal
2026-03-18 17:21:42 -07:00
committed by GitHub
parent edf6161b77
commit 4b072217b2

View File

@@ -1515,6 +1515,13 @@ export class BackupExportStream extends Readable {
const me = this.#getRecipientByServiceId(aboutMe.aci, 'getting self');
strictAssert(me, 'self recipient must exist');
if (chatItem?.authorId == null) {
log.warn(`${message.sent_at}: Dropping message without known author`);
return undefined;
}
strictAssert(chatItem.authorId !== 0n, 'authorId 0 is invalid');
if (
chatItem &&
conversation &&