Skip to content

Commit 5b0abc3

Browse files
maxwellmooney13PureCloud Jenkinsbeizhedenglonghjonzservies
authored
Release/v11.3.1 (#941)
Co-authored-by: PureCloud Jenkins <jenkins@genesys.com> Co-authored-by: Victor <wang_shaojie@icloud.com> Co-authored-by: Jon Hjelle <hjon@users.noreply.github.com> Co-authored-by: Zachary Servies <zachservies@gmail.com>
1 parent 8a9972c commit 5b0abc3

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ All notable changes to this project will be documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
# [Unreleased](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.2.3...HEAD)
6+
# [Unreleased](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.3.1...HEAD)
7+
8+
# [v11.3.1](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.3.0...v11.3.1)
9+
# Changed
10+
* [STREAM-850](https://inindca.atlassian.net/browse/STREAM-850) - Suppress `error.ininedgecontrol.session.inactive` errors to prevent consuming UIs from presenting benign errors
711

812
# [v11.3.0](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.2.3...v11.3.0)
913
# Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "genesys-cloud-webrtc-sdk",
3-
"version": "11.3.0",
3+
"version": "11.3.1",
44
"description": "client for the interfacing with Genesys Cloud WebRTC",
55
"repository": "https://github.com/mypurecloud/genesys-cloud-webrtc-sdk",
66
"license": "MIT",

src/sessions/softphone-session-handler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ export class SoftphoneSessionHandler extends BaseSessionHandler {
392392
callState: ICallStateFromParticipant
393393
): void {
394394
if (callState.errorInfo) {
395+
if (callState.errorInfo.code === 'error.ininedgecontrol.session.inactive') {
396+
return;
397+
}
395398
this.debouncedEmitCallError(update, participant, callState);
396399
}
397400
}

test/unit/sessions/softphone-session-handler.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,6 +2550,22 @@ describe('checkForCallErrors', () => {
25502550

25512551
expect(spy).not.toHaveBeenCalled();
25522552
});
2553+
2554+
it('should return out if call error is inactive with "is inactive for" message', () => {
2555+
const update = { id: 'convoUpdate' };
2556+
const participant = { id: 'participantId' };
2557+
const callState = {
2558+
errorInfo: {
2559+
code: 'error.ininedgecontrol.session.inactive',
2560+
message: 'is inactive for 10 seconds'
2561+
}
2562+
};
2563+
2564+
const spy = jest.spyOn(handler, 'debouncedEmitCallError');
2565+
handler.checkForCallErrors(update as any, participant as any, callState as any);
2566+
2567+
expect(spy).not.toHaveBeenCalled();
2568+
});
25532569
});
25542570

25552571
describe('getActiveConversations', () => {

0 commit comments

Comments
 (0)