3c69886320
Also: - New schema version 8 with video/image thumbnails, screenshots, sizes - Upgrade messages not at current schema version when loading messages to show in conversation - New MessageDetail react component - New ConversationHeader react component
31 lines
441 B
Markdown
31 lines
441 B
Markdown
```jsx
|
|
const messages = [
|
|
{
|
|
id: '1',
|
|
attachments: [
|
|
{
|
|
fileName: 'foo.json',
|
|
contentType: 'application/json',
|
|
size: 53313,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: '2',
|
|
attachments: [
|
|
{
|
|
fileName: 'bar.txt',
|
|
contentType: 'text/plain',
|
|
size: 10323,
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
<AttachmentSection
|
|
header="Today"
|
|
type="documents"
|
|
messages={messages}
|
|
i18n={util.i18n}
|
|
/>;
|
|
```
|