@koi-design/callkit 2.3.0-beta.7 → 2.3.0-beta.8

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.mjs CHANGED
@@ -697,7 +697,7 @@ var Call = class {
697
697
  // package.json
698
698
  var package_default = {
699
699
  name: "@koi-design/callkit",
700
- version: "2.3.0-beta.7",
700
+ version: "2.3.0-beta.8",
701
701
  description: "callkit",
702
702
  author: "koi",
703
703
  license: "ISC",
@@ -17357,10 +17357,7 @@ var CallKit = class {
17357
17357
  caller: "CallKit.register",
17358
17358
  content: {}
17359
17359
  });
17360
- const { userInfo } = this.config.getConfig();
17361
- if (userInfo.phoneType === PhoneTypeEnum.SIP) {
17362
- this.connect.register();
17363
- }
17360
+ this.connect.register();
17364
17361
  }
17365
17362
  async unregister() {
17366
17363
  if (!this.config.check())
@@ -17470,13 +17467,10 @@ var CallKit = class {
17470
17467
  force
17471
17468
  }
17472
17469
  });
17473
- const { userInfo } = this.config.getConfig();
17474
- if (userInfo.phoneType === PhoneTypeEnum.SIP) {
17475
- if (this.connect.isCalling()) {
17476
- await this.hangup();
17477
- }
17478
- await this.connect.reset({ force });
17470
+ if (this.connect.isCalling()) {
17471
+ await this.hangup();
17479
17472
  }
17473
+ await this.connect.reset({ force });
17480
17474
  if (this.config.isLogin()) {
17481
17475
  await this.logout({ isReset: false });
17482
17476
  } else {