🐛 (share) Enable back empty public ID for self-hosted version

Closes #576
This commit is contained in:
Baptiste Arnaud
2023-07-07 14:35:17 +02:00
parent 5ae6c64d06
commit 56078b4e02
8 changed files with 32 additions and 20 deletions

View File

@@ -20,6 +20,14 @@ export const AudioBubble = (props: Props) => {
typingTimeout = setTimeout(() => {
setIsTyping(false)
setTimeout(() => {
const audioElement = ref?.querySelector('audio')
if (audioElement) {
try {
audioElement.play()
} catch (e) {
console.warn('Could not autoplay the audio:', e)
}
}
props.onTransitionEnd(ref?.offsetTop)
}, showAnimationDuration)
}, typingDuration)
@@ -49,7 +57,6 @@ export const AudioBubble = (props: Props) => {
(isTyping() ? 'opacity-0' : 'opacity-100')
}
style={{ height: isTyping() ? '32px' : 'revert' }}
autoplay
controls
/>
</div>