From a18c9146e07441827a9b7c2e54ec0a5e6f2aa5bd Mon Sep 17 00:00:00 2001 From: sashaweiss-signal Date: Mon, 23 Sep 2024 11:13:36 -0700 Subject: [PATCH] Add test cases for SMS standard messages --- src/main/kotlin/Main.kt | 1 + .../ChatItemStandardMessageSmsTestCase.kt | 46 ++++++ ...chat_item_standard_message_sms_00.binproto | Bin 0 -> 448 bytes ...chat_item_standard_message_sms_00.txtproto | 134 +++++++++++++++++ ...chat_item_standard_message_sms_01.binproto | Bin 0 -> 446 bytes ...chat_item_standard_message_sms_01.txtproto | 131 +++++++++++++++++ ...chat_item_standard_message_sms_02.binproto | Bin 0 -> 436 bytes ...chat_item_standard_message_sms_02.txtproto | 136 +++++++++++++++++ ...chat_item_standard_message_sms_03.binproto | Bin 0 -> 447 bytes ...chat_item_standard_message_sms_03.txtproto | 138 +++++++++++++++++ ...chat_item_standard_message_sms_04.binproto | Bin 0 -> 443 bytes ...chat_item_standard_message_sms_04.txtproto | 137 +++++++++++++++++ ...chat_item_standard_message_sms_05.binproto | Bin 0 -> 440 bytes ...chat_item_standard_message_sms_05.txtproto | 137 +++++++++++++++++ ...chat_item_standard_message_sms_06.binproto | Bin 0 -> 443 bytes ...chat_item_standard_message_sms_06.txtproto | 137 +++++++++++++++++ ...chat_item_standard_message_sms_07.binproto | Bin 0 -> 447 bytes ...chat_item_standard_message_sms_07.txtproto | 138 +++++++++++++++++ ...chat_item_standard_message_sms_08.binproto | Bin 0 -> 436 bytes ...chat_item_standard_message_sms_08.txtproto | 136 +++++++++++++++++ ...chat_item_standard_message_sms_09.binproto | Bin 0 -> 447 bytes ...chat_item_standard_message_sms_09.txtproto | 138 +++++++++++++++++ ...chat_item_standard_message_sms_10.binproto | Bin 0 -> 443 bytes ...chat_item_standard_message_sms_10.txtproto | 137 +++++++++++++++++ ...chat_item_standard_message_sms_11.binproto | Bin 0 -> 438 bytes ...chat_item_standard_message_sms_11.txtproto | 135 +++++++++++++++++ ...chat_item_standard_message_sms_12.binproto | Bin 0 -> 443 bytes ...chat_item_standard_message_sms_12.txtproto | 139 ++++++++++++++++++ ...chat_item_standard_message_sms_13.binproto | Bin 0 -> 447 bytes ...chat_item_standard_message_sms_13.txtproto | 138 +++++++++++++++++ ...chat_item_standard_message_sms_14.binproto | Bin 0 -> 438 bytes ...chat_item_standard_message_sms_14.txtproto | 138 +++++++++++++++++ 32 files changed, 2096 insertions(+) create mode 100644 src/main/kotlin/tests/ChatItemStandardMessageSmsTestCase.kt create mode 100644 test-cases/chat_item_standard_message_sms_00.binproto create mode 100644 test-cases/chat_item_standard_message_sms_00.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_01.binproto create mode 100644 test-cases/chat_item_standard_message_sms_01.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_02.binproto create mode 100644 test-cases/chat_item_standard_message_sms_02.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_03.binproto create mode 100644 test-cases/chat_item_standard_message_sms_03.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_04.binproto create mode 100644 test-cases/chat_item_standard_message_sms_04.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_05.binproto create mode 100644 test-cases/chat_item_standard_message_sms_05.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_06.binproto create mode 100644 test-cases/chat_item_standard_message_sms_06.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_07.binproto create mode 100644 test-cases/chat_item_standard_message_sms_07.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_08.binproto create mode 100644 test-cases/chat_item_standard_message_sms_08.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_09.binproto create mode 100644 test-cases/chat_item_standard_message_sms_09.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_10.binproto create mode 100644 test-cases/chat_item_standard_message_sms_10.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_11.binproto create mode 100644 test-cases/chat_item_standard_message_sms_11.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_12.binproto create mode 100644 test-cases/chat_item_standard_message_sms_12.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_13.binproto create mode 100644 test-cases/chat_item_standard_message_sms_13.txtproto create mode 100644 test-cases/chat_item_standard_message_sms_14.binproto create mode 100644 test-cases/chat_item_standard_message_sms_14.txtproto diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index cbbf7dd..f017ec3 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -33,6 +33,7 @@ val ALL_TEST_CASES = listOf( ChatItemGroupCallUpdateTestCase, ChatItemStandardMessageTextOnlyTestCase, ChatItemStandardMessageFormattedTextTestCase, + ChatItemStandardMessageSmsTestCase, ChatItemStandardMessageStandardAttachmentsTestCase, ChatItemStandardMessageSpecialAttachmentsTestCase, ChatItemStandardMessageLongTextTestCase, diff --git a/src/main/kotlin/tests/ChatItemStandardMessageSmsTestCase.kt b/src/main/kotlin/tests/ChatItemStandardMessageSmsTestCase.kt new file mode 100644 index 0000000..6400600 --- /dev/null +++ b/src/main/kotlin/tests/ChatItemStandardMessageSmsTestCase.kt @@ -0,0 +1,46 @@ +package tests + +import PermutationScope +import TestCase +import org.thoughtcrime.securesms.backup.v2.proto.ChatItem +import org.thoughtcrime.securesms.backup.v2.proto.Frame +import org.thoughtcrime.securesms.backup.v2.proto.StandardMessage +import org.thoughtcrime.securesms.backup.v2.proto.Text + +/** + * Incoming/outgoing text-only messages. + */ +object ChatItemStandardMessageSmsTestCase : TestCase("chat_item_standard_message_sms") { + + override fun PermutationScope.execute() { + frames += StandardFrames.MANDATORY_FRAMES + + frames += StandardFrames.recipientAlice + frames += StandardFrames.chatAlice + + val (incomingGenerator, outgoingGenerator) = Generators.incomingOutgoingDetails(StandardFrames.recipientAlice.recipient!!) + + val incoming = some(incomingGenerator) + val outgoing = some(outgoingGenerator) + + frames += Frame( + chatItem = ChatItem( + chatId = StandardFrames.chatAlice.chat!!.id, + authorId = if (outgoing != null) { + StandardFrames.recipientSelf.recipient!!.id + } else { + StandardFrames.recipientAlice.recipient!!.id + }, + dateSent = someIncrementingTimestamp(), + incoming = incoming, + outgoing = outgoing, + sms = someBoolean(), + standardMessage = StandardMessage( + text = Text( + body = someNonEmptyString() + ) + ) + ) + ) + } +} diff --git a/test-cases/chat_item_standard_message_sms_00.binproto b/test-cases/chat_item_standard_message_sms_00.binproto new file mode 100644 index 0000000000000000000000000000000000000000..89acd28507c2e0f470b687e127702ec87548ff31 GIT binary patch literal 448 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JFB17b+5yEy0VX9EjHCn1izXZ{~P bYACSqPs_#GCLqs8aSE|>u@ + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 4 + chatId = 2 + dateSent = 1680366577838 + incoming = IncomingMessageDetails { + dateReceived = 1702291826269 + dateServerSent = 1794124103201 + read = true + sealedSender = true + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_01.binproto b/test-cases/chat_item_standard_message_sms_01.binproto new file mode 100644 index 0000000000000000000000000000000000000000..fe429f2a74c9244efb045dd2799e95b329ccf1fb GIT binary patch literal 446 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^J371!737zc}aZX9Fibj(cbRA3ka* au;@?A#n~oNyh7YuoRQ&aE+Od!o?ZYSnThQH literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_01.txtproto b/test-cases/chat_item_standard_message_sms_01.txtproto new file mode 100644 index 0000000..82dda3d --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_01.txtproto @@ -0,0 +1,131 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 4 + chatId = 2 + dateSent = 1680366577839 + incoming = IncomingMessageDetails { + dateReceived = 1702291826270 + dateServerSent = 1794124103202 + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_02.binproto b/test-cases/chat_item_standard_message_sms_02.binproto new file mode 100644 index 0000000000000000000000000000000000000000..e23dcfca5a5cbfca4220dbde3bd753d3720b9477 GIT binary patch literal 436 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^J680Aw&qY`8e*?PmiEMlUul77i9E QhA2)Ub}rU}luWNE0B`1i#Q*>R literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_02.txtproto b/test-cases/chat_item_standard_message_sms_02.txtproto new file mode 100644 index 0000000..d3215c8 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_02.txtproto @@ -0,0 +1,136 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577840 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + pending = Pending {} + recipientId = 4 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_03.binproto b/test-cases/chat_item_standard_message_sms_03.binproto new file mode 100644 index 0000000000000000000000000000000000000000..4a503e44dd0f15d0259d15f7d002b2ba354f8f34 GIT binary patch literal 447 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JRF4P-D%Y`i$H;>7{x2Z&BYlRp5_vgUf}5k07yxO82|tP literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_03.txtproto b/test-cases/chat_item_standard_message_sms_03.txtproto new file mode 100644 index 0000000..542970e --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_03.txtproto @@ -0,0 +1,138 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577841 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + recipientId = 4 + sent = Sent { + sealedSender = true + } + timestamp = 1833527071192 + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_04.binproto b/test-cases/chat_item_standard_message_sms_04.binproto new file mode 100644 index 0000000000000000000000000000000000000000..1eac7370fcfee29b38442c2e5b6d901a39cceda0 GIT binary patch literal 443 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JLD4rDM&Y`Qq-?PmiEMlW72ZVncK Y^>a@xU2Uku5XC9P&c#}glIax%042$Uk^lez literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_04.txtproto b/test-cases/chat_item_standard_message_sms_04.txtproto new file mode 100644 index 0000000..c587757 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_04.txtproto @@ -0,0 +1,137 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577842 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + recipientId = 4 + sent = Sent {} + timestamp = 1695248715439 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_05.binproto b/test-cases/chat_item_standard_message_sms_05.binproto new file mode 100644 index 0000000000000000000000000000000000000000..c32b62ee4096b1bfae7de5888b7a4cec9ce2b94c GIT binary patch literal 440 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JCA0%R~sY`!?>?Pmio4lXth7A+ + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577843 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + delivered = Delivered { + sealedSender = true + } + recipientId = 4 + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_06.binproto b/test-cases/chat_item_standard_message_sms_06.binproto new file mode 100644 index 0000000000000000000000000000000000000000..88f58767390afc54c13cbbb748c1a57de1eec192 GIT binary patch literal 443 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JLD4rDM&Y`Hk+?PmiEMlW72ZVncK Y8;f6WU1zGr5XC9P&c#}glIax%04;)r0{{R3 literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_06.txtproto b/test-cases/chat_item_standard_message_sms_06.txtproto new file mode 100644 index 0000000..f29e005 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_06.txtproto @@ -0,0 +1,137 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577844 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + delivered = Delivered {} + recipientId = 4 + timestamp = 1833527071192 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_07.binproto b/test-cases/chat_item_standard_message_sms_07.binproto new file mode 100644 index 0000000000000000000000000000000000000000..be342310c5ef876fd04603a42005c9d0df6e34b9 GIT binary patch literal 447 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JRF4P-D%Y`r+=?PmioelA`P7J>D1 cPc2<-XvD<97{x2Z&BYlRp5_vgUf}5k06?0B#sB~S literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_07.txtproto b/test-cases/chat_item_standard_message_sms_07.txtproto new file mode 100644 index 0000000..b4247de --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_07.txtproto @@ -0,0 +1,138 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577845 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + read = Read { + sealedSender = true + } + recipientId = 4 + timestamp = 1695248715439 + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_08.binproto b/test-cases/chat_item_standard_message_sms_08.binproto new file mode 100644 index 0000000000000000000000000000000000000000..182c1f9e3c1db3305b19f96ac1c157cb72d61eb9 GIT binary patch literal 436 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^J680Aw&qY`Zw;?PmiEMlUul77i98 QhA2)Ub}rU}luWNE0CB*8;{X5v literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_08.txtproto b/test-cases/chat_item_standard_message_sms_08.txtproto new file mode 100644 index 0000000..fc792eb --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_08.txtproto @@ -0,0 +1,136 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577846 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + read = Read {} + recipientId = 4 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_09.binproto b/test-cases/chat_item_standard_message_sms_09.binproto new file mode 100644 index 0000000000000000000000000000000000000000..d96c701f40cc92c7a969841bbc1742d454533833 GIT binary patch literal 447 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JRF4P-D%Y`-|??PmioelA`P7J(a! cUvFJ!YQ@CC7{x2Z&BYlRp5_vgUf}5k07~_SHvj+t literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_09.txtproto b/test-cases/chat_item_standard_message_sms_09.txtproto new file mode 100644 index 0000000..f75e006 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_09.txtproto @@ -0,0 +1,138 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577847 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + recipientId = 4 + timestamp = 1833527071192 + viewed = Viewed { + sealedSender = true + } + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_10.binproto b/test-cases/chat_item_standard_message_sms_10.binproto new file mode 100644 index 0000000000000000000000000000000000000000..a5c3116868763725f0a275767af3a979ba26fa71 GIT binary patch literal 443 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JLD4rDM&?6^4R?PmiEMlW72ZVncK Y^>a@xU2SN^5XC9P&c#}glIax%04L3aumAu6 literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_10.txtproto b/test-cases/chat_item_standard_message_sms_10.txtproto new file mode 100644 index 0000000..81a493e --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_10.txtproto @@ -0,0 +1,137 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577848 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + recipientId = 4 + timestamp = 1695248715439 + viewed = Viewed {} + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_11.binproto b/test-cases/chat_item_standard_message_sms_11.binproto new file mode 100644 index 0000000000000000000000000000000000000000..080a9db5482469c8a895985c38b6ef77e4650e10 GIT binary patch literal 438 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^J061Y|Hu?7TSV?PmioHZB$p7AJ-% SULkHS&dBgImyq-VPcHy@NP+|a literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_11.txtproto b/test-cases/chat_item_standard_message_sms_11.txtproto new file mode 100644 index 0000000..d112f66 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_11.txtproto @@ -0,0 +1,135 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577849 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + recipientId = 4 + skipped = Skipped {} + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_12.binproto b/test-cases/chat_item_standard_message_sms_12.binproto new file mode 100644 index 0000000000000000000000000000000000000000..ab836778d9793e513e0a50e5b96d38cb9648e012 GIT binary patch literal 443 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JLD4rDM&?7BGT?PmiEMlW72ZVncK Y8;f6WU1#dW5XC9P&c#}glIax%059%^DF6Tf literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_12.txtproto b/test-cases/chat_item_standard_message_sms_12.txtproto new file mode 100644 index 0000000..773180e --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_12.txtproto @@ -0,0 +1,139 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577850 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + failed = Failed { + reason = FailureReason.UNKNOWN + } + recipientId = 4 + timestamp = 1833527071192 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_13.binproto b/test-cases/chat_item_standard_message_sms_13.binproto new file mode 100644 index 0000000000000000000000000000000000000000..1945a8aa17a7d8ca15ca621f6f3ebdf0d1d54127 GIT binary patch literal 447 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^JRF4P-D%?7leX?PmioelA`P7J>D1 cPc2<-=*7gr7{x2Z&BYlRp5_vgUf}5k07FKF + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577851 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + failed = Failed { + reason = FailureReason.NETWORK + } + recipientId = 4 + timestamp = 1695248715439 + } + ] + } + standardMessage = StandardMessage { + text = Text { + body = "YWfDTgpIJ" + } + } + } +} \ No newline at end of file diff --git a/test-cases/chat_item_standard_message_sms_14.binproto b/test-cases/chat_item_standard_message_sms_14.binproto new file mode 100644 index 0000000000000000000000000000000000000000..1f1c0536682b7a6b6958d3cf0093b07ef8ad2e32 GIT binary patch literal 438 zcmd<&U=+CVYr*{QhVK};UNdqjBr;80{r0evr^npIvkXrzJv;O4rTnk$MvpQchreSe zy?H~3Cn-NEF+MG|q(slmOv;Q)AvHaw_yXSs0oKR6YrNb)O*@?$^1ZWBxkL1&=na*> zdXt3&5)U#iVz}xg-g$^s;)Z9{2MHD>7AK%7S}blrW2`i}6yEI4IBsGrrMKAl>~i;$ zJ+8s2N{JEL{^z0|+*{#$E>%*9IW*Wsg3-$h=v+n#Mg>LQ6Kf`}EAr=lsEd~(9 zWW*pNB*nq3B*rBGRE`3qm?W5!gc3Mdgkpe_T!QBq7#tWHAW9g8&_$ROrarp!-`Y#z zdTc3P6vgV8lbM{F#2TENS(0JJz#+xP!6d*Ez^J061Y|Hu?72AS?PmiEMlTL7HVzgq SCJv@3P9b(K)`FBwuP6X=OMw*t literal 0 HcmV?d00001 diff --git a/test-cases/chat_item_standard_message_sms_14.txtproto b/test-cases/chat_item_standard_message_sms_14.txtproto new file mode 100644 index 0000000..0c0a852 --- /dev/null +++ b/test-cases/chat_item_standard_message_sms_14.txtproto @@ -0,0 +1,138 @@ +// This file was auto-generated! It's only meant to show you what's in the .binproto. Do not edit! + +BackupInfo { + backupTimeMs = 1715636551000 + version = 1 +} + +Frame { + account = AccountData { + accountSettings = AccountSettings { + customChatColors = [ + CustomChatColor { + id = 1 + solid = -16777216 + }, + CustomChatColor { + id = 2 + solid = -65536 + }, + CustomChatColor { + id = 3 + solid = -16711936 + } + ] + displayBadgesOnProfile = true + hasCompletedUsernameOnboarding = true + hasSeenGroupStoryEducationSheet = true + hasSetMyStoriesPrivacy = true + hasViewedOnboardingStory = true + keepMutedChatsArchived = true + linkPreviews = true + notDiscoverableByPhoneNumber = true + phoneNumberSharingMode = PhoneNumberSharingMode.NOBODY + preferContactAvatars = true + preferredReactionEmoji = [ + "a", + "b", + "c" + ] + readReceipts = true + sealedSenderIndicators = true + storiesDisabled = true + storyViewReceiptsEnabled = true + typingIndicators = true + universalExpireTimerSeconds = 3600 + } + avatarUrlPath = "" + donationSubscriberData = SubscriberData { + currencyCode = "USD" + manuallyCancelled = true + subscriberId = + } + familyName = "Fett" + givenName = "Boba" + profileKey = <610291abedc34249489da39a31c9a5cd99cdd26ff58732e268e357ee0075d9d8> + username = "boba_fett.66" + usernameLink = UsernameLink { + color = Color.OLIVE + entropy = <65675c73d00eb01005e3bb7c4a47f296cb6554f78981238815e915d824fd2e93> + serverId = <61c101a200d5421789c20518d8497af0> + } + } +} + +Frame { + recipient = Recipient { + id = 1 + self = Self {} + } +} + +Frame { + recipient = Recipient { + id = 2 + releaseNotes = ReleaseNotes {} + } +} + +Frame { + recipient = Recipient { + distributionList = DistributionListItem { + distributionId = <00000000000000000000000000000000> + distributionList = DistributionList { + name = "" + privacyMode = PrivacyMode.ALL + } + } + id = 3 + } +} + +Frame { + recipient = Recipient { + contact = Contact { + aci = <000a11ce000040008000000000000001> + e164 = 16105550101 + pni = <000a11ce000040008000000000000002> + profileFamilyName = "Smith" + profileGivenName = "Alice" + profileKey = + registered = Registered {} + visibility = Visibility.VISIBLE + } + id = 4 + } +} + +Frame { + chat = Chat { + expireTimerVersion = 1 + id = 2 + recipientId = 4 + } +} + +Frame { + chatItem = ChatItem { + authorId = 1 + chatId = 2 + dateSent = 1680366577852 + outgoing = OutgoingMessageDetails { + sendStatus = [ + SendStatus { + failed = Failed { + reason = FailureReason.IDENTITY_KEY_MISMATCH + } + recipientId = 4 + } + ] + } + sms = true + standardMessage = StandardMessage { + text = Text { + body = "pdiJZ" + } + } + } +} \ No newline at end of file