Introduce Service Id Types

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny 2023-08-10 18:43:33 +02:00 committed by Jamie Kyle
parent 414c0a58d3
commit 366b875fd2
269 changed files with 5832 additions and 5550 deletions

View file

@ -15,7 +15,7 @@ import { getIncomingCall as getIncomingCallHelper } from '../ducks/callingHelper
import { getUserACI } from './user';
import { getOwn } from '../../util/getOwn';
import { CallViewMode } from '../../types/Calling';
import type { UUIDStringType } from '../../types/UUID';
import type { AciString } from '../../types/ServiceId';
export type CallStateType = DirectCallStateType | GroupCallStateType;
@ -70,13 +70,13 @@ export const getIncomingCall = createSelector(
getUserACI,
(
callsByConversation: CallsByConversationType,
ourUuid: UUIDStringType | undefined
ourAci: AciString | undefined
): undefined | DirectCallStateType | GroupCallStateType => {
if (!ourUuid) {
if (!ourAci) {
return undefined;
}
return getIncomingCallHelper(callsByConversation, ourUuid);
return getIncomingCallHelper(callsByConversation, ourAci);
}
);