@flowengage/react-chatbot 5.0.29 → 5.0.30
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.
|
@@ -3245,13 +3245,6 @@ function Nr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3245
3245
|
c(() => {
|
|
3246
3246
|
let e = k.current;
|
|
3247
3247
|
!e || !y || zt.current !== C && (C && zt.current !== null ? (e.updateChatStatus(y, "open").catch(() => {}), Bt.current = !0) : zt.current === !0 && e.updateChatStatus(y, "widget_closed").catch(() => {}), zt.current = C);
|
|
3248
|
-
}, [C, y]), c(() => {
|
|
3249
|
-
if (!C || !y || !Bt.current) return;
|
|
3250
|
-
let e = setInterval(() => {
|
|
3251
|
-
let e = k.current;
|
|
3252
|
-
e && y && e.updateChatStatus(y, "open").catch(() => {});
|
|
3253
|
-
}, 1e4);
|
|
3254
|
-
return () => clearInterval(e);
|
|
3255
3248
|
}, [C, y]), c(() => {
|
|
3256
3249
|
let e = () => {
|
|
3257
3250
|
let e = ot.current, t = k.current;
|