End call when connection is lost
- Automatically end call when WebRTC connection is lost
- Remove state when in call
GitLab: 182
Change-Id: I259eccda82db7304542bef863c429c9313b4145a
diff --git a/client/src/managers/NotificationManager.tsx b/client/src/managers/NotificationManager.tsx
index 5362f54..c515320 100644
--- a/client/src/managers/NotificationManager.tsx
+++ b/client/src/managers/NotificationManager.tsx
@@ -39,8 +39,9 @@
const callBeginListener = (data: CallBegin) => {
console.info('Received event on CallBegin', data);
- navigate(`/conversation/${data.conversationId}/call?role=receiver`, {
+ navigate(`/conversation/${data.conversationId}/call`, {
state: {
+ role: 'receiver',
callStatus: CallStatus.Ringing,
isVideoOn: data.withVideoOn,
},