Test for roundtripping view-once quotes
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
008e3c36fe
commit
1186caefb8
1 changed files with 39 additions and 1 deletions
|
@ -339,7 +339,45 @@ describe('backup/bubble messages', () => {
|
|||
]
|
||||
);
|
||||
});
|
||||
// TODO (DESKTOP-7899): Roundtrip view-once quotes
|
||||
|
||||
it('roundtrips view-once-quotes', async () => {
|
||||
const message = {
|
||||
conversationId: contactA.id,
|
||||
id: generateGuid(),
|
||||
type: 'incoming',
|
||||
received_at: 3,
|
||||
received_at_ms: 3,
|
||||
sent_at: 3,
|
||||
sourceServiceId: CONTACT_A,
|
||||
readStatus: ReadStatus.Unread,
|
||||
seenStatus: SeenStatus.Unseen,
|
||||
unidentifiedDeliveryReceived: true,
|
||||
timestamp: 3,
|
||||
quote: {
|
||||
authorAci: CONTACT_A,
|
||||
attachments: [],
|
||||
id: 42,
|
||||
text: 'quote text',
|
||||
isViewOnce: true,
|
||||
isGiftBadge: false,
|
||||
referencedMessageNotFound: true,
|
||||
},
|
||||
} as const;
|
||||
|
||||
await asymmetricRoundtripHarness(
|
||||
[message],
|
||||
[
|
||||
{
|
||||
...message,
|
||||
quote: {
|
||||
...message.quote,
|
||||
// id is removed during roundtrip
|
||||
id: null,
|
||||
},
|
||||
},
|
||||
]
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
it('roundtrips sealed/unsealed incoming message', async () => {
|
||||
|
|
Loading…
Reference in a new issue