44a573b6c4
- Add ability to play/pause by using `converse-rich-text` - Make `converse-rich-text` component configurable whether the media URLs for GIF/audio/video are shown - Add fallback options for GIFs that have errors
6 lines
268 B
JavaScript
6 lines
268 B
JavaScript
import { html } from "lit";
|
|
import 'shared/components/gif.js';
|
|
|
|
export default (url, hide_url) =>
|
|
html`<converse-gif autoplay noloop fallback='empty' src=${url}></converse-gif>${ hide_url ? '' : html`<a target="_blank" rel="noopener" href="${url}">${url}</a>` }`;
|