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

@ -1448,10 +1448,10 @@ export function getPropsForCallHistory(
const isSelectMode = selectedMessageIds != null; const isSelectMode = selectedMessageIds != null;
let callCreator: ConversationType | null = null; let callCreator: ConversationType | null = null;
if (callHistory.ringerId) { if (callHistory.direction === CallDirection.Outgoing) {
callCreator = conversationSelector(callHistory.ringerId);
} else if (callHistory.direction === CallDirection.Outgoing) {
callCreator = conversationSelector(ourConversationId); callCreator = conversationSelector(ourConversationId);
} else if (callHistory.ringerId) {
callCreator = conversationSelector(callHistory.ringerId);
} }
if (callHistory.mode === CallMode.Direct) { if (callHistory.mode === CallMode.Direct) {

View file

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