diff --git a/packages/components/client/chat/render.ts b/packages/components/client/chat/render.ts index 0407724d..83e7096a 100644 --- a/packages/components/client/chat/render.ts +++ b/packages/components/client/chat/render.ts @@ -10,7 +10,7 @@ const render: FunctionalComponent = (elements, ctx) => { } else if (type === 'at') { return h('span', `@${attrs.name}`) } else if (type === 'img') { - return h('img', { src: attrs.src }) + return h('img', { src: attrs.src || attrs.url }) } else if (type === 'audio') { return h('audio', { src: attrs.src, controls: true }) } else if (type === 'video') {