✨ (settings) Add delay between bubbles option and typing disabling on first message
This commit is contained in:
@@ -10,6 +10,7 @@ import { computeTypingDuration } from '@typebot.io/bot-engine/computeTypingDurat
|
||||
type Props = {
|
||||
content: TextBubbleBlock['content']
|
||||
typingEmulation: Settings['typingEmulation']
|
||||
isTypingSkipped: boolean
|
||||
onTransitionEnd: (offsetTop?: number) => void
|
||||
}
|
||||
|
||||
@@ -35,7 +36,7 @@ export const TextBubble = (props: Props) => {
|
||||
? computePlainText(props.content.richText)
|
||||
: ''
|
||||
const typingDuration =
|
||||
props.typingEmulation?.enabled === false
|
||||
props.typingEmulation?.enabled === false || props.isTypingSkipped
|
||||
? 0
|
||||
: computeTypingDuration({
|
||||
bubbleContent: plainText,
|
||||
|
||||
Reference in New Issue
Block a user