@vkontakte/calls-sdk 2.8.12-beta.13 → 2.8.12-beta.14
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/calls-sdk.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @vkontakte/calls-sdk v2.8.12-beta.
|
|
3
|
-
* Fri, 28 Aug 2026
|
|
2
|
+
* @vkontakte/calls-sdk v2.8.12-beta.14
|
|
3
|
+
* Fri, 28 Aug 2026 11:40:32 GMT
|
|
4
4
|
* https://calls-sdk.cdn-vk.ru/doc/latest/index.html
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -2168,7 +2168,7 @@ var hn = mn.getInstance(), M = class e {
|
|
|
2168
2168
|
return 1.1;
|
|
2169
2169
|
}
|
|
2170
2170
|
static get sdkVersion() {
|
|
2171
|
-
return "2.8.12-beta.
|
|
2171
|
+
return "2.8.12-beta.14";
|
|
2172
2172
|
}
|
|
2173
2173
|
static get debug() {
|
|
2174
2174
|
return e._params.debug;
|
|
@@ -9539,6 +9539,10 @@ var ns = 15, $ = class e extends b {
|
|
|
9539
9539
|
_allocateParticipantTransport(e, t) {
|
|
9540
9540
|
this._transport && (this._transport.getTopology() === J.DIRECT && (t = this._directTransportIsMaster ?? (this._directTransportIsMaster = t)), this._transport.allocate(e, t));
|
|
9541
9541
|
}
|
|
9542
|
+
_closeParticipantTransport(e) {
|
|
9543
|
+
let t = this._transport?.getTopology() === J.DIRECT && this._transport.opened().includes(e);
|
|
9544
|
+
this._transport?.close(e), t && (this._directTransportIsMaster = void 0);
|
|
9545
|
+
}
|
|
9542
9546
|
_cleanupRegistry() {
|
|
9543
9547
|
z.remove(this._reservedId), z.remove(this.id), this._reservedId = null;
|
|
9544
9548
|
}
|
|
@@ -10212,7 +10216,7 @@ var ns = 15, $ = class e extends b {
|
|
|
10212
10216
|
this._warnParticipantNotInConversation(e);
|
|
10213
10217
|
return;
|
|
10214
10218
|
}
|
|
10215
|
-
|
|
10219
|
+
for (let e of t) this._closeParticipantTransport(e.id);
|
|
10216
10220
|
this._stats.logger.log(C.REMOVE_PARTICIPANT);
|
|
10217
10221
|
}
|
|
10218
10222
|
async changeDevice(e) {
|
|
@@ -11116,7 +11120,7 @@ var ns = 15, $ = class e extends b {
|
|
|
11116
11120
|
this._warnParticipantNotInConversation(t);
|
|
11117
11121
|
return;
|
|
11118
11122
|
}
|
|
11119
|
-
if (this.
|
|
11123
|
+
if (this._closeParticipantTransport(t), n.state = e.reason === D.REJECTED ? Z.REJECTED : Z.HUNGUP, this._state !== "CLOSE") {
|
|
11120
11124
|
let t = e.reason === D.OBSOLETE_CLIENT ? D.OBSOLETE_CLIENT : D.HUNGUP;
|
|
11121
11125
|
this._removeParticipant(n, t);
|
|
11122
11126
|
}
|
|
@@ -114,6 +114,7 @@ export default class Conversation extends EventEmitter {
|
|
|
114
114
|
updateStatisticsInterval(): void;
|
|
115
115
|
private _openTransport;
|
|
116
116
|
private _allocateParticipantTransport;
|
|
117
|
+
private _closeParticipantTransport;
|
|
117
118
|
private _cleanupRegistry;
|
|
118
119
|
private _emitHangupOnce;
|
|
119
120
|
private _sendHangupApi;
|