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/components/ConversationView.tsx b/client/src/components/ConversationView.tsx
index 064efcf..146f049 100644
--- a/client/src/components/ConversationView.tsx
+++ b/client/src/components/ConversationView.tsx
@@ -83,10 +83,10 @@
</Typography>
</Stack>
<Stack direction="row" spacing="20px">
- <StartAudioCallButton onClick={() => startCall(conversationId)} />
+ <StartAudioCallButton onClick={() => startCall(conversationId, 'caller')} />
<StartVideoCallButton
onClick={() =>
- startCall(conversationId, {
+ startCall(conversationId, 'caller', {
isVideoOn: true,
})
}