@koi-design/callkit 2.1.0-beta.5 → 2.1.0-beta.7

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.
@@ -3879,7 +3879,7 @@ var WebCall = (() => {
3879
3879
  // package.json
3880
3880
  var package_default = {
3881
3881
  name: "@koi-design/callkit",
3882
- version: "2.1.0-beta.5",
3882
+ version: "2.1.0-beta.7",
3883
3883
  description: "callkit",
3884
3884
  author: "koi",
3885
3885
  license: "ISC",
@@ -19284,6 +19284,11 @@ ${log}` : log;
19284
19284
  try {
19285
19285
  const inviteData = formatGetInviteData(info);
19286
19286
  if (inviteData?.callUuid) {
19287
+ if (this.isInCallRefering() && this.currentCallId === inviteData?.callUuid) {
19288
+ this.currentSession.accept(options);
19289
+ this.setInCallRefering(false);
19290
+ return;
19291
+ }
19287
19292
  this.setCallId(inviteData.callUuid);
19288
19293
  } else {
19289
19294
  this.setCallId(null);
@@ -19302,11 +19307,6 @@ ${log}` : log;
19302
19307
  }
19303
19308
  });
19304
19309
  }
19305
- if (this.isInCallRefering()) {
19306
- this.currentSession.accept(options);
19307
- this.setInCallRefering(false);
19308
- return;
19309
- }
19310
19310
  if (this.isOutgoing) {
19311
19311
  this.currentSession.accept(options);
19312
19312
  this.callKit.trigger(KitEvent.KIT_OUTGOING_INVITE, {
@@ -19391,7 +19391,7 @@ ${log}` : log;
19391
19391
  reconnectTimer;
19392
19392
  reconnectAttempts = 0;
19393
19393
  startReconnectTimer() {
19394
- if (this._isError)
19394
+ if (this._isError || this.isReConnected)
19395
19395
  return;
19396
19396
  if (this.reconnectAttempts >= this.reconnectConfig.maxAttempts && this.callKit.config.isLogin()) {
19397
19397
  this._isError = true;
@@ -19556,6 +19556,9 @@ ${log}` : log;
19556
19556
  this.isUnprompted = isUnprompted;
19557
19557
  this.setHold(false);
19558
19558
  this.setMute(false);
19559
+ this.setInCallRefering(false);
19560
+ this.setRefering(false);
19561
+ this.setIsReConnected(false);
19559
19562
  if (this.connectStatus === CallStatus.init)
19560
19563
  return;
19561
19564
  try {