Skip to content

Commit

Permalink
fix: make ignore call can still keep active (#54)
Browse files Browse the repository at this point in the history
* feat(hubspot): [misc] make ignore call can still keep active

* fix test
  • Loading branch information
tuluxmu authored Oct 14, 2022
1 parent fbcfa8a commit fae29aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Session extends EventEmitter {
}

_onWebphoneSessionTerminated = () => {
this._status = PartyStatusCode.disconnected;
// this._status = PartyStatusCode.disconnected;
this._cleanWebPhoneSession();
if (!this._telephonySession) {
this.emit(events.DISCONNECTED);
Expand Down
2 changes: 1 addition & 1 deletion test/session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('RingCentral Call :: Session', () => {
emited = true;
});
webphoneSession.trigger('terminated', {});
expect(session.status).toEqual(PartyStatusCode.disconnected);
// expect(session.status).toEqual(PartyStatusCode.disconnected);
expect(session.webphoneSession).toEqual(null);
expect(emited).toEqual(true);
});
Expand Down

0 comments on commit fae29aa

Please sign in to comment.