@flowengage/react-chatbot 5.0.47 → 5.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30127,7 +30127,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, voiceId: i
|
|
|
30127
30127
|
if (e) return;
|
|
30128
30128
|
let n = t.role === "user" ? "user" : "bot", r = t.message || t.text || t.content || "";
|
|
30129
30129
|
if (r) {
|
|
30130
|
-
if (n === "user" && (w.current = r, fe.current = !0, de.current &&= (clearTimeout(de.current), null),
|
|
30130
|
+
if (n === "user" && (w.current = r, fe.current = !0, de.current &&= (clearTimeout(de.current), null), ue.current &&= (clearTimeout(ue.current), null)), u.current = [...u.current, {
|
|
30131
30131
|
sender: n,
|
|
30132
30132
|
message: r,
|
|
30133
30133
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|