@koi-design/callkit 2.0.5-beta.3 → 2.0.5-beta.4

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/index.js CHANGED
@@ -661,7 +661,7 @@ var Call = class {
661
661
  // package.json
662
662
  var package_default = {
663
663
  name: "@koi-design/callkit",
664
- version: "2.0.5-beta.3",
664
+ version: "2.0.5-beta.4",
665
665
  description: "callkit",
666
666
  author: "koi",
667
667
  license: "ISC",
@@ -1072,6 +1072,9 @@ var Connect = class {
1072
1072
  this.callKit.trigger(KitEvent.KIT_CALL_ID_CHANGE, callId);
1073
1073
  }
1074
1074
  async reset() {
1075
+ this.isOutgoing = false;
1076
+ this.isUnprompted = false;
1077
+ this.hasInvite = false;
1075
1078
  if (this.isHolding()) {
1076
1079
  await this.setHold(false);
1077
1080
  }
@@ -1091,9 +1094,6 @@ var Connect = class {
1091
1094
  this.mediaStream = void 0;
1092
1095
  this.userAgent = void 0;
1093
1096
  this.registerer = void 0;
1094
- this.isOutgoing = false;
1095
- this.isUnprompted = false;
1096
- this.hasInvite = false;
1097
1097
  if (this.mediaStream) {
1098
1098
  try {
1099
1099
  closeStream(this.mediaStream);