Call details screen disable call buttons if call is active

This commit is contained in:
Evan Hahn
2022-02-16 12:33:52 -06:00
committed by GitHub
parent da68def79f
commit fd81d38931
6 changed files with 60 additions and 22 deletions

View File

@@ -1176,6 +1176,11 @@ function startCallingLobby({
"startCallingLobby: can't start lobby without a conversation"
);
strictAssert(
!state.calling.activeCallState,
"startCallingLobby: can't start lobby if a call is active"
);
// The group call device count is considered 0 for a direct call.
const groupCall = getGroupCall(conversationId, state.calling);
const groupCallDeviceCount =