Do not allow invalid thread merge events in backups.

This commit is contained in:
Greyson Parrelli
2025-03-31 09:34:10 -04:00
parent cffba71186
commit 42e7f5f4fc

View File

@@ -291,7 +291,7 @@ class ChatItemArchiveExporter(
}
MessageTypes.isThreadMergeType(record.type) -> {
builder.updateMessage = record.toRemoteThreadMergeUpdate() ?: continue
builder.updateMessage = record.toRemoteThreadMergeUpdate()?.takeIf { exportState.recipientIdToAci.contains(builder.authorId) } ?: continue
transformTimer.emit("thread-merge")
}