Allow manually retrying attachment downloads

This commit is contained in:
Fedor Indutny 2022-05-23 16:07:41 -07:00 committed by GitHub
parent 59b45399e4
commit dfc310805a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 265 additions and 58 deletions

View file

@ -25,7 +25,9 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
direction: 'incoming',
i18n,
text: text('text', overrideProps.text || ''),
textPending: boolean('textPending', overrideProps.textPending || false),
textAttachment: overrideProps.textAttachment || {
pending: boolean('textPending', false),
},
});
story.add('Links Enabled', () => {
@ -91,7 +93,9 @@ story.add('Jumbomoji Disabled by Text', () => {
story.add('Text Pending', () => {
const props = createProps({
text: 'Check out https://www.signal.org',
textPending: true,
textAttachment: {
pending: true,
},
});
return <MessageBody {...props} />;