Fix ringer updates
This commit is contained in:
parent
22acb57078
commit
59d9807301
2 changed files with 6 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue