|
|
@ -155,15 +155,17 @@ class ChatMessageList extends ImmutablePureComponent {
|
|
|
|
const attachment = chatMessage.get('attachment');
|
|
|
|
const attachment = chatMessage.get('attachment');
|
|
|
|
if (!attachment) return null;
|
|
|
|
if (!attachment) return null;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Bundle fetchComponent={MediaGallery}>
|
|
|
|
<div className='chat-message__media'>
|
|
|
|
{Component => (
|
|
|
|
<Bundle fetchComponent={MediaGallery}>
|
|
|
|
<Component
|
|
|
|
{Component => (
|
|
|
|
media={ImmutableList([attachment])}
|
|
|
|
<Component
|
|
|
|
height={120}
|
|
|
|
media={ImmutableList([attachment])}
|
|
|
|
onOpenMedia={this.onOpenMedia}
|
|
|
|
height={120}
|
|
|
|
/>
|
|
|
|
onOpenMedia={this.onOpenMedia}
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
</Bundle>
|
|
|
|
)}
|
|
|
|
|
|
|
|
</Bundle>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|