Hydrate body ranges for story replies

This commit is contained in:
Fedor Indutny 2022-11-09 20:59:36 -08:00 committed by GitHub
parent 9f85db3fd8
commit be6e988a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 221 additions and 172 deletions

View file

@ -114,6 +114,7 @@ export const Mention = (): JSX.Element => {
length: 1,
mentionUuid: 'tuv',
replacementText: 'Bender B Rodriguez 🤖',
conversationID: 'x',
},
],
text: 'Like \uFFFC once said: My story is a lot like yours, only more interesting because it involves robots',
@ -135,18 +136,21 @@ export const MultipleMentions = (): JSX.Element => {
length: 1,
mentionUuid: 'def',
replacementText: 'Philip J Fry',
conversationID: 'x',
},
{
start: 4,
length: 1,
mentionUuid: 'abc',
replacementText: 'Professor Farnsworth',
conversationID: 'x',
},
{
start: 0,
length: 1,
mentionUuid: 'xyz',
replacementText: 'Yancy Fry',
conversationID: 'x',
},
],
text: '\uFFFC \uFFFC \uFFFC',
@ -168,18 +172,21 @@ export const ComplexMessageBody = (): JSX.Element => {
length: 1,
mentionUuid: 'wer',
replacementText: 'Acid Burn',
conversationID: 'x',
},
{
start: 80,
length: 1,
mentionUuid: 'xox',
replacementText: 'Cereal Killer',
conversationID: 'x',
},
{
start: 4,
length: 1,
mentionUuid: 'ldo',
replacementText: 'Zero Cool',
conversationID: 'x',
},
],
direction: 'outgoing',