Skip to content

Commit

Permalink
chore: upgrade call control sdk (#35)
Browse files Browse the repository at this point in the history
* chore: upgrade call control sdk

* chore: upgrade version
  • Loading branch information
embbnux authored Dec 7, 2021
1 parent 6c5985e commit cbc86a0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ $(function() {
refreshCallList();
});
});
$('.modal').modal('hide');
$loadingModal.modal('hide');
}
if (rcCall.webphoneRegistered || rcCall.callControlReady) {
onInitializedEvent();
}
rcCall.on('webphone-registration-failed', onInitializedEvent);
rcCall.on('webphone-registered', onInitializedEvent);
rcCall.on('call-control-ready', onInitializedEvent);
if ($callType.val() === 'webphone') {
$deviceRow.hide();
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringcentral-call",
"version": "0.2.13",
"version": "0.2.14",
"main": "lib/index.js",
"license": "MIT",
"repository": {
Expand All @@ -20,7 +20,7 @@
"test:showCoverage": "cat ./coverage/lcov.info | coveralls"
},
"peerDependencies": {
"ringcentral-call-control": "^0.2.4",
"ringcentral-call-control": "^0.2.6",
"ringcentral-web-phone": "^0.8.3"
},
"devDependencies": {
Expand All @@ -32,7 +32,7 @@
"coveralls": "^3.0.9",
"http-server": "^0.12.3",
"jest": "^25.4.0",
"ringcentral-call-control": "^0.2.4",
"ringcentral-call-control": "^0.2.6",
"ringcentral-web-phone": "^0.8.3",
"ts-jest": "^25.4.0",
"ts-loader": "^5.3.3",
Expand Down
5 changes: 5 additions & 0 deletions src/RingCentralCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ export class RingCentralCall extends EventEmitter {
);
}

removeWebphone() {
this._clearWebphone();
}

_clearWebphone() {
if (!this._webphone) {
return;
Expand Down Expand Up @@ -442,6 +446,7 @@ export class RingCentralCall extends EventEmitter {
}

onNotificationEvent = (msg) => {
// console.log(JSON.stringify(msg, null, 2));
this._callControl.onNotificationEvent(msg);
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4706,10 +4706,10 @@ rimraf@^3.0.0:
dependencies:
glob "^7.1.3"

ringcentral-call-control@^0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/ringcentral-call-control/-/ringcentral-call-control-0.2.4.tgz#f831c8a6c682265de037dd856b6f684ae820fb58"
integrity sha512-LQ4OF4TjRKagKnVnLqsSb5WVbNOeYsEHpsm6BLrOH+P27pdh3LjDVTM1Exvz8mcAknLcZD+8Y0q4V9zz4l/MWg==
ringcentral-call-control@^0.2.6:
version "0.2.6"
resolved "https://registry.yarnpkg.com/ringcentral-call-control/-/ringcentral-call-control-0.2.6.tgz#d7f90346d5dd83cbc7faabf8a849c1f36a0182ed"
integrity sha512-iwcb/sZrVtTCoQN0eSWJIed21tezHQ7OV5ZrFg/7z5xWVG/yICHmIODCt95ICR64w9elOoHeAHQwDXuwry9gVQ==

ringcentral-web-phone@^0.8.3:
version "0.8.3"
Expand Down

0 comments on commit cbc86a0

Please sign in to comment.