Update backup integration tests.

This commit is contained in:
Greyson Parrelli
2024-11-21 12:29:31 -05:00
parent f5a68aa7ae
commit b7464ffca9
73 changed files with 11 additions and 1 deletions

View File

@@ -88,6 +88,16 @@ class ArchiveImportExportTests {
runTests { it.startsWith("chat_item_group_call_update_") }
}
// @Test
fun chatItemGroupChangeChatMultipleUpdate() {
runTests { it.startsWith("chat_item_group_change_chat_multiple_update_") }
}
// @Test
fun chatItemGroupChangeChatUpdate() {
runTests { it.startsWith("chat_item_group_change_chat_") }
}
// @Test
fun chatItemIndividualCallUpdate() {
runTests { it.startsWith("chat_item_individual_call_update_") }

View File

@@ -394,7 +394,7 @@ private fun BackupMessageRecord.toBasicChatItemBuilder(selfRecipientId: Recipien
expiresInMs = if (record.expiresIn > 0) record.expiresIn else 0
revisions = emptyList()
sms = record.type.isSmsType()
if (record.type.isDirectionlessType()) {
if (record.type.isDirectionlessType() || record.messageExtras?.gv2UpdateDescription != null) {
directionless = ChatItem.DirectionlessMessageDetails()
} else if (MessageTypes.isOutgoingMessageType(record.type) || record.fromRecipientId == selfRecipientId.toLong()) {
outgoing = ChatItem.OutgoingMessageDetails(