const Bubble = { props: ["category", "text", "html", "blob", "modifier", "child"], setup(props) { const getUrl = () => { return `data:${props.category};base64,${props.blob}`; } Vue.onMounted(() => { const el = document.getElementById("messenger"); setTimeout(() => { el.dispatchEvent(new CustomEvent('adjust-scroll')); }, 100); }); if (!props.text) props.text = "..."; return { getUrl }; }, template: `

{{ text }}

{{ text }}

{{ text }}
` }; export default Bubble; // TODO: should include other styling/actions for audio bubbles