Skip to content

Commit

Permalink
Add test case for learned-profile chat update messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sashaweiss-signal authored Jul 29, 2024
1 parent 84cc3a0 commit 216bbb5
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
Binary file not shown.
106 changes: 106 additions & 0 deletions test-cases/learned-profile-chat-update-message.jsonproto
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
// Includes a "learned profile" chat update message.
[
{
"backupTimeMs": "123456",
"version": "1"
},
{
"account": {
"profileKey": "YQKRq+3DQklInaOaMcmlzZnN0m/1hzLiaONX7gB12dg=",
"givenName": "Boba",
"familyName": "Fett",
"avatarUrlPath": "",
"accountSettings": {
"readReceipts": false,
"sealedSenderIndicators": true,
"typingIndicators": false,
"linkPreviews": false,
"notDiscoverableByPhoneNumber": false,
"preferContactAvatars": false,
"universalExpireTimerSeconds": 0,
"preferredReactionEmoji": [],
"displayBadgesOnProfile": false,
"keepMutedChatsArchived": false,
"hasSetMyStoriesPrivacy": false,
"hasViewedOnboardingStory": false,
"storiesDisabled": false,
"storyViewReceiptsEnabled": false,
"hasSeenGroupStoryEducationSheet": false,
"hasCompletedUsernameOnboarding": false,
"phoneNumberSharingMode": "NOBODY"
}
}
},
{
"recipient": {
"id": "1",
"self": {}
}
},
{
"recipient": {
"id": "2",
"releaseNotes": {}
}
},
{
"recipient": {
"id": "3",
"distributionList": {
"distributionId": "AAAAAAAAAAAAAAAAAAAAAA==",
"distributionList": {
"allowReplies": true,
"memberRecipientIds": [],
"name": "My Story",
"privacyMode": "ALL"
}
}
}
},
{
"recipient": {
"id": "4",
"contact": {
"aci": "X4xWjQEZR72BqruHybcZlQ==",
"profileKey": "YtHHVK+Wo4nPcVpWhC3roMEDu2Tw6kYc9JpLRMq1Q94=",
"profileSharing": true,
"profileFamilyName": "Solo",
"profileGivenName": "Han",
"registered": {},
"hideStory": false,
}
}
},
{
"chat": {
"id": "1",
"recipientId": "4"
}
},
{
"chatItem": {
"authorId": "1",
"chatId": "1",
"dateSent": "1",
"directionless": {},
"updateMessage": {
"learnedProfileChange": {
"username": "boba_fett.99"
}
}
}
},
{
"chatItem": {
"authorId": "1",
"chatId": "1",
"dateSent": "2",
"directionless": {},
"updateMessage": {
"learnedProfileChange": {
"e164": 17735550199
}
}
}
},
]

0 comments on commit 216bbb5

Please sign in to comment.