2
0

Improve old engine bubbles display robustness

This commit is contained in:
Baptiste Arnaud
2023-02-03 15:39:58 +01:00
parent 0b34321bf7
commit ae88d2cae1
7 changed files with 88 additions and 71 deletions

View File

@@ -4,7 +4,6 @@ import { ImageBubble } from '@/features/blocks/bubbles/image'
import { TextBubble } from '@/features/blocks/bubbles/textBubble'
import { VideoBubble } from '@/features/blocks/bubbles/video'
import { BubbleBlock, BubbleBlockType } from 'models'
import React from 'react'
type Props = {
block: BubbleBlock

View File

@@ -307,7 +307,7 @@ const ChatChunks = ({
unmountOnExit
in={isDefined(input)}
>
{input && (
{input ? (
<InputChatBlock
block={input}
onTransitionEnd={onDisplayNextBlock}
@@ -315,6 +315,8 @@ const ChatChunks = ({
hasAvatar={hostAvatar.isEnabled}
hasGuestAvatar={hasGuestAvatar}
/>
) : (
<div />
)}
</CSSTransition>
)}