Fix ringer updates

This commit is contained in:
Jamie Kyle 2024-07-25 07:57:20 -07:00 committed by GitHub
parent 22acb57078
commit 59d9807301
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -567,7 +567,9 @@ export function transitionCallHistory(
strictAssert(callHistory.callId === callId, 'callId must be same');
strictAssert(callHistory.peerId === peerId, 'peerId must be same');
strictAssert(
ringerId == null || callHistory.ringerId === ringerId,
ringerId == null ||
callHistory.ringerId == null ||
callHistory.ringerId === ringerId,
'ringerId must be same if it exists'
);
strictAssert(callHistory.direction === direction, 'direction must be same');