Fix exporting release note messages.

This commit is contained in:
Greyson Parrelli
2025-12-10 16:57:31 -05:00
parent e7aed3bab3
commit f610c1a8b1
8 changed files with 7 additions and 2 deletions

View File

@@ -63,7 +63,12 @@ class ArchiveImportExportTests {
// @Test
fun chat() {
runTests { it.startsWith("chat_") && !it.contains("_item") }
runTests { it.matches(Regex("^chat_%d%d.binproto$")) }
}
// @Test
fun chatReleaseNotes() {
runTests { it.startsWith("chat_release_notes_") }
}
// @Test

View File

@@ -1639,7 +1639,7 @@ private fun ChatItem.validateChatItem(exportState: ExportState, selfRecipientId:
return null
}
if (this.incoming != null && exportState.recipientIdToAci[this.authorId] == null && exportState.recipientIdToE164[this.authorId] == null) {
if (this.incoming != null && this.authorId != exportState.releaseNoteRecipientId && exportState.recipientIdToAci[this.authorId] == null && exportState.recipientIdToE164[this.authorId] == null) {
Log.w(TAG, ExportSkips.incomingMessageAuthorDoesNotHaveAciOrE164(this.dateSent))
return null
}