Fix calls to PNI

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-02-28 02:32:39 -06:00 committed by GitHub
parent abc5bbf8a6
commit c3411a940e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View file

@ -127,6 +127,7 @@ import {
} from '../util/callDisposition';
import { isNormalNumber } from '../util/isNormalNumber';
import { LocalCallEvent } from '../types/CallDisposition';
import { isServiceIdString } from '../types/ServiceId';
import { isInSystemContacts } from '../util/isInSystemContacts';
import {
getRoomIdFromRootKey,
@ -2287,7 +2288,10 @@ export class CallingClass {
Boolean(message.offer);
try {
assertDev(isAciString(remoteUserId), 'remoteUserId is not a aci');
assertDev(
isServiceIdString(remoteUserId),
'remoteUserId is not a service id'
);
const result = await handleMessageSend(
window.textsecure.messaging.sendCallingMessage(
remoteUserId,

View file

@ -27,7 +27,6 @@ import type {
ConversationsByDemuxIdType,
GroupCallRemoteParticipantType,
} from '../../types/Calling';
import { isAciString } from '../../util/isAciString';
import type { AciString } from '../../types/ServiceId';
import { CallMode, CallState } from '../../types/Calling';
import type { CallLinkType } from '../../types/CallLink';
@ -194,11 +193,6 @@ const mapStateToActiveCallProp = (
return;
}
strictAssert(
isAciString(conversation.serviceId),
'Conversation must have aci'
);
return {
...baseResult,
callEndedReason: call.callEndedReason,