@koi-design/callkit 2.3.0-beta.4 → 2.3.0-beta.6
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.d.ts +0 -2
- package/dist/index.global.js +5 -5
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.
|
|
700
|
+
version: "2.3.0-beta.6",
|
|
701
701
|
description: "callkit",
|
|
702
702
|
author: "koi",
|
|
703
703
|
license: "ISC",
|
|
@@ -842,8 +842,6 @@ var Config = class {
|
|
|
842
842
|
return true;
|
|
843
843
|
};
|
|
844
844
|
isLogin = () => this.validate();
|
|
845
|
-
/** 判断当前坐席类型是否为 SIP */
|
|
846
|
-
isPhoneTypeSIP = () => this.config.userInfo.phoneType === PhoneTypeEnum.SIP;
|
|
847
845
|
check() {
|
|
848
846
|
if (!this.isLogin()) {
|
|
849
847
|
this.callKit.logger.warn("User not logged in", {
|
|
@@ -17360,7 +17358,8 @@ var CallKit = class {
|
|
|
17360
17358
|
caller: "CallKit.register",
|
|
17361
17359
|
content: {}
|
|
17362
17360
|
});
|
|
17363
|
-
|
|
17361
|
+
const { userInfo } = this.config.getConfig();
|
|
17362
|
+
if (userInfo.phoneType === PhoneTypeEnum.SIP) {
|
|
17364
17363
|
this.connect.register();
|
|
17365
17364
|
}
|
|
17366
17365
|
}
|
|
@@ -17472,7 +17471,8 @@ var CallKit = class {
|
|
|
17472
17471
|
force
|
|
17473
17472
|
}
|
|
17474
17473
|
});
|
|
17475
|
-
|
|
17474
|
+
const { userInfo } = this.config.getConfig();
|
|
17475
|
+
if (userInfo.phoneType === PhoneTypeEnum.SIP) {
|
|
17476
17476
|
if (this.connect.isCalling()) {
|
|
17477
17477
|
await this.hangup();
|
|
17478
17478
|
}
|