From e2766e9190c7f8d911f0f00ea76cd56db2523b80 Mon Sep 17 00:00:00 2001 From: Sasha Weiss Date: Mon, 22 Jul 2024 14:37:55 -0700 Subject: [PATCH] Add test case for session switchover chat updates --- ...on-switchover-chat-update-message.binproto | Bin 0 -> 181 bytes ...n-switchover-chat-update-message.jsonproto | 79 ++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 test-cases/session-switchover-chat-update-message.binproto create mode 100644 test-cases/session-switchover-chat-update-message.jsonproto diff --git a/test-cases/session-switchover-chat-update-message.binproto b/test-cases/session-switchover-chat-update-message.binproto new file mode 100644 index 0000000000000000000000000000000000000000..dc2f3b73420129d0ccfc7c0f9dd93efdc774b1b5 GIT binary patch literal 181 zcmZSMU=%oTgx!+MoJ%2*Y2xa)hn+k<<}RLPcyj64nP)HMe{DBs=hv%FnSZFRmEz!=5sk(ign5}cot gZ^ghS1vFQHSwu+)L`g6PF;sCFv2lFw{L|qC010qC@Bjb+ literal 0 HcmV?d00001 diff --git a/test-cases/session-switchover-chat-update-message.jsonproto b/test-cases/session-switchover-chat-update-message.jsonproto new file mode 100644 index 0000000..872d56f --- /dev/null +++ b/test-cases/session-switchover-chat-update-message.jsonproto @@ -0,0 +1,79 @@ +// Includes a "session switchover" 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", + "contact": { + "aci": "X4xWjQEZR72BqruHybcZlQ==", + "profileKey": "YtHHVK+Wo4nPcVpWhC3roMEDu2Tw6kYc9JpLRMq1Q94=", + "profileSharing": true, + "profileFamilyName": "Solo", + "profileGivenName": "Han", + "registered": {}, + "hideStory": false, + } + } + }, + { + "chat": { + "id": "1", + "recipientId": "3" + } + }, + { + "chatItem": { + "authorId": "3", + "chatId": "1", + "dateSent": "1", + "directionless": {}, + "updateMessage": { + "sessionSwitchover": { + "e164": 17735550199 + } + } + } + }, +]