Fix calls to PNI
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
abc5bbf8a6
commit
c3411a940e
2 changed files with 5 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue