Skip to content

Commit 8f64755

Browse files
committed
[STREAM-990] Store a copy of pendingSessions in the demo app so freezing them doesn't affect the SDK using and mutating them
1 parent b1ecb68 commit 8f64755

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
### Fixed
88
* [STREAM-978](https://inindca.atlassian.net/browse/STREAM-978) - When the RTCPeerConnection is in a 'failed' state, clean up the session. Filter out voicemail participants from conversation update events. Fix potential TypeError when fetching conversations.
99
* [STREAM-987](https://inindca.atlassian.net/browse/STREAM-987) - Demo app: Memoize conversations so they don't change every render when nothing has changed
10+
* [STREAM-990](https://inindca.atlassian.net/browse/STREAM-990) - Demo app: Store a copy of pendingSessions so freezing them doesn't affect the SDK's usage of those objects
1011

1112
# [v11.3.3](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.3.2...v11.3.3)
1213
#### Changed

react-demo-app/src/hooks/useSdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function useSdk() {
8787
}
8888

8989
function handlePendingSession(pendingSession: IPendingSession): void {
90-
dispatch(updatePendingSessions(pendingSession));
90+
dispatch(updatePendingSessions({ ...pendingSession }));
9191
}
9292
// If a pendingSession was cancelled or handled, we can remove it from our state.
9393
function handleCancelPendingSession(sessionInfo: ISessionIdAndConversationId): void {

0 commit comments

Comments
 (0)