@ethora/chat-component 25.7.1 → 25.7.2
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 +6 -18
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9860,7 +9860,7 @@ class Ny {
|
|
|
9860
9860
|
this.presencesReady = !1, await this.allRoomPresencesStanza(), this.presencesReady = !0;
|
|
9861
9861
|
}
|
|
9862
9862
|
async reconnect() {
|
|
9863
|
-
return this.presencesReady = !1, this.reconnecting ? this.reconnectPromise : (this.reconnecting = !0, this.reconnectPromise = (async () => {
|
|
9863
|
+
return this.presencesReady = !1, this.status === "connecting" || this.status === "online" ? Promise.resolve() : this.reconnecting ? this.reconnectPromise : (this.reconnecting = !0, this.reconnectPromise = (async () => {
|
|
9864
9864
|
try {
|
|
9865
9865
|
this.logStep("reconnect:start"), await this.disconnect(), await this.initializeClient();
|
|
9866
9866
|
} finally {
|
|
@@ -10047,24 +10047,12 @@ class Ny {
|
|
|
10047
10047
|
return new Promise((f) => {
|
|
10048
10048
|
o = f, this.pingTimeout = setTimeout(async () => {
|
|
10049
10049
|
if (!r) {
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
), m = () => {
|
|
10056
|
-
this.status === "online" ? (clearTimeout(u), l()) : setTimeout(m, 200);
|
|
10057
|
-
};
|
|
10058
|
-
m();
|
|
10059
|
-
});
|
|
10060
|
-
const d = await this.sendMessageWithPingCheck(
|
|
10061
|
-
e,
|
|
10062
|
-
!0
|
|
10063
|
-
);
|
|
10064
|
-
f(d);
|
|
10065
|
-
return;
|
|
10050
|
+
this.client.removeListener("stanza", a), this.lastPingId = null;
|
|
10051
|
+
try {
|
|
10052
|
+
await e(), f(!0);
|
|
10053
|
+
} catch {
|
|
10054
|
+
f(!1);
|
|
10066
10055
|
}
|
|
10067
|
-
f(!1);
|
|
10068
10056
|
}
|
|
10069
10057
|
}, this.pongTimeoutMs);
|
|
10070
10058
|
});
|