Only notify for group calls once

This commit is contained in:
Jamie Kyle
2023-08-10 15:41:53 -07:00
committed by Jamie Kyle
parent 3268d3e6eb
commit 1f963efd64
3 changed files with 53 additions and 28 deletions

View File

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