Fix adding group call history with no ring

This commit is contained in:
Jamie Kyle
2023-08-23 10:07:29 -07:00
committed by GitHub
parent da05b32f4f
commit d3a18a197b
3 changed files with 13 additions and 12 deletions

View File

@@ -372,13 +372,14 @@ const doGroupCallPeek = (
`doGroupCallPeek/groupv2(${conversation.groupId}): Found ${peekInfo.deviceCount} devices`
);
if (existingCall?.callMode === CallMode.Group) {
await calling.updateCallHistoryForGroupCall(
conversationId,
existingCall.joinState,
peekInfo
);
}
const joinState =
existingCall?.callMode === CallMode.Group ? existingCall.joinState : null;
await calling.updateCallHistoryForGroupCall(
conversationId,
joinState,
peekInfo
);
const formattedPeekInfo = calling.formatGroupCallPeekInfoForRedux(peekInfo);