@ethora/chat-component 25.3.19 → 25.3.21
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.
- package/dist/main.js +5 -5
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -69778,8 +69778,8 @@ const EE = N.div`
|
|
|
69778
69778
|
de(() => () => {
|
|
69779
69779
|
x && s.xmppPassword === "" && (console.log("closing client"), x.close(), P(null));
|
|
69780
69780
|
}, [s.xmppPassword]);
|
|
69781
|
-
const R = async (H) => {
|
|
69782
|
-
l(!0), await o(H, t), l(!1);
|
|
69781
|
+
const R = async (H, J = !1) => {
|
|
69782
|
+
J && l(!0), await o(H, t), l(!1);
|
|
69783
69783
|
};
|
|
69784
69784
|
de(() => {
|
|
69785
69785
|
var J;
|
|
@@ -69800,7 +69800,7 @@ const EE = N.div`
|
|
|
69800
69800
|
if (!s.xmppUsername)
|
|
69801
69801
|
g(!0), console.log("Error, no user");
|
|
69802
69802
|
else if (x)
|
|
69803
|
-
t != null && t.newArch && R(x), d(!0), await x.getChatsPrivateStoreRequestStanza().then(
|
|
69803
|
+
t != null && t.newArch && await R(x, !0), d(!0), await x.getChatsPrivateStoreRequestStanza().then(
|
|
69804
69804
|
async (je) => {
|
|
69805
69805
|
Zr(je, y), await _r(B, x), P(x);
|
|
69806
69806
|
}
|
|
@@ -69813,7 +69813,7 @@ const EE = N.div`
|
|
|
69813
69813
|
t == null ? void 0 : t.xmppSettings,
|
|
69814
69814
|
D
|
|
69815
69815
|
).then((Ti) => Ti);
|
|
69816
|
-
D && Object.keys(D).length > 0 ? (d(!0), await w1(je, D)) : t != null && t.newArch ? (R(je), d(!0)) : await je.getRoomsStanza(), await je.getChatsPrivateStoreRequestStanza().then(
|
|
69816
|
+
D && Object.keys(D).length > 0 ? (d(!0), await w1(je, D)) : t != null && t.newArch ? (await R(je), d(!0)) : await je.getRoomsStanza(), await je.getChatsPrivateStoreRequestStanza().then(
|
|
69817
69817
|
async (Ti) => {
|
|
69818
69818
|
Zr(Ti, y), await _r(B, je), P(je);
|
|
69819
69819
|
}
|
|
@@ -69955,7 +69955,7 @@ const EE = N.div`
|
|
|
69955
69955
|
}, []), s = ye();
|
|
69956
69956
|
return de(() => {
|
|
69957
69957
|
var A, o, f, d, c, l, h, g, v, p, b, k, m;
|
|
69958
|
-
if (
|
|
69958
|
+
if ((A = n.config) != null && A.baseUrl && Ty((o = n.config) == null ? void 0 : o.baseUrl, (f = n.config) == null ? void 0 : f.customAppToken), (c = (d = n == null ? void 0 : n.config) == null ? void 0 : d.userLogin) != null && c.enabled && ((h = (l = n == null ? void 0 : n.config) == null ? void 0 : l.userLogin) != null && h.user)) {
|
|
69959
69959
|
s(Kn(n.config.userLogin.user));
|
|
69960
69960
|
return;
|
|
69961
69961
|
}
|