mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Exclude chatItems without an author during export
This commit is contained in:
@@ -1515,6 +1515,13 @@ export class BackupExportStream extends Readable {
|
|||||||
const me = this.#getRecipientByServiceId(aboutMe.aci, 'getting self');
|
const me = this.#getRecipientByServiceId(aboutMe.aci, 'getting self');
|
||||||
strictAssert(me, 'self recipient must exist');
|
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 (
|
if (
|
||||||
chatItem &&
|
chatItem &&
|
||||||
conversation &&
|
conversation &&
|
||||||
|
|||||||
Reference in New Issue
Block a user