mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Fix ringer updates
This commit is contained in:
@@ -1448,10 +1448,10 @@ export function getPropsForCallHistory(
|
||||
const isSelectMode = selectedMessageIds != null;
|
||||
|
||||
let callCreator: ConversationType | null = null;
|
||||
if (callHistory.ringerId) {
|
||||
callCreator = conversationSelector(callHistory.ringerId);
|
||||
} else if (callHistory.direction === CallDirection.Outgoing) {
|
||||
if (callHistory.direction === CallDirection.Outgoing) {
|
||||
callCreator = conversationSelector(ourConversationId);
|
||||
} else if (callHistory.ringerId) {
|
||||
callCreator = conversationSelector(callHistory.ringerId);
|
||||
}
|
||||
|
||||
if (callHistory.mode === CallMode.Direct) {
|
||||
|
||||
@@ -566,7 +566,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');
|
||||
|
||||
Reference in New Issue
Block a user