@flowengage/react-chatbot 1.5.3 → 1.5.4
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.
|
@@ -2619,7 +2619,10 @@ function In({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
2619
2619
|
chatId: c
|
|
2620
2620
|
}), console.log("[FlowEngageProvider] tracking started", { chatId: c });
|
|
2621
2621
|
let m = await l.loadHistory(c, r);
|
|
2622
|
-
if (console.log("[FlowEngageProvider] history loaded", m), !e
|
|
2622
|
+
if (console.log("[FlowEngageProvider] history loaded", m), !e) return;
|
|
2623
|
+
b(An(m.chat_history || [])), te(!!m.is_human_handled), w(m.is_human_handled ? "agent" : C);
|
|
2624
|
+
let g = m?.visitor_email || m?.visitorEmail;
|
|
2625
|
+
if (g && String(g).trim() && pt(String(g).trim()), await new Promise((e) => setTimeout(e, 500)), !e) return;
|
|
2623
2626
|
s("ready"), console.log("[FlowEngageProvider] status ready");
|
|
2624
2627
|
} catch (t) {
|
|
2625
2628
|
if (!e) return;
|