webitel-sdk 26.4.21 → 26.4.22

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/index.mjs CHANGED
@@ -66150,7 +66150,9 @@ var Session$2 = class {
66150
66150
  });
66151
66151
  }
66152
66152
  setMediaConfig(s) {
66153
- this.session.sendInfo("application/json", JSON.stringify(s));
66153
+ setTimeout(() => {
66154
+ this.session.sendInfo("application/json", JSON.stringify(s));
66155
+ }, 500);
66154
66156
  }
66155
66157
  };
66156
66158
  //#endregion
@@ -66683,7 +66685,7 @@ _defineProperty(SipPhone$1, "userAgent", `Webitel-Phone/${version$1}`);
66683
66685
  _defineProperty(SipPhone$1, "sipVersion", version$1);
66684
66686
  //#endregion
66685
66687
  //#region src/version.ts
66686
- const version = "26.4.21";
66688
+ const version = "26.4.22";
66687
66689
  //#endregion
66688
66690
  //#region src/socket/errors.ts
66689
66691
  /**
@@ -69529,7 +69531,7 @@ var Conversation = class {
69529
69531
  clearTimeout(this._autoAnswerTimerId);
69530
69532
  this._autoAnswerTimerId = null;
69531
69533
  }
69532
- this.member = wrapChannelMember(member);
69534
+ this.member = wrapChannelMember(member) || {};
69533
69535
  if (!this.members.some((m) => m.id === this.member.id)) this.members.push(this.member);
69534
69536
  this.inviteId = null;
69535
69537
  }