Upgrade to RingRTC v2.4.0
This commit is contained in:
parent
7ef5dc6401
commit
2f015863ca
6 changed files with 28 additions and 16 deletions
2
ts/model-types.d.ts
vendored
2
ts/model-types.d.ts
vendored
|
@ -87,7 +87,6 @@ declare class ConversationModelType extends Backbone.Model<
|
|||
getAccepted(): boolean;
|
||||
getAvatarPath(): string | undefined;
|
||||
getColor(): ColorType | undefined;
|
||||
getIsAddedByContact(): boolean;
|
||||
getName(): string | undefined;
|
||||
getNumber(): string;
|
||||
getProfileName(): string | undefined;
|
||||
|
@ -96,6 +95,7 @@ declare class ConversationModelType extends Backbone.Model<
|
|||
getSendOptions(options?: any): SendOptionsType | undefined;
|
||||
getTitle(): string;
|
||||
idForLogging(): string;
|
||||
isFromOrAddedByTrustedContact(): boolean;
|
||||
isVerified(): boolean;
|
||||
safeGetVerified(): Promise<number>;
|
||||
setProfileKey(profileKey?: string | null): Promise<void>;
|
||||
|
|
|
@ -396,7 +396,7 @@ export class CallingClass {
|
|||
const shouldRelayCalls = Boolean(await window.getAlwaysRelayCalls());
|
||||
|
||||
// If the peer is 'unknown', i.e. not in the contact list, force IP hiding.
|
||||
const isContactUnknown = !conversation.getIsAddedByContact();
|
||||
const isContactUnknown = !conversation.isFromOrAddedByTrustedContact();
|
||||
|
||||
return {
|
||||
iceServer: JSON.parse(iceServerJson),
|
||||
|
|
6
ts/textsecure.d.ts
vendored
6
ts/textsecure.d.ts
vendored
|
@ -904,6 +904,9 @@ export declare class WebSocketResponseMessageClass {
|
|||
// Everything from here down to HangupType (everything related to calling)
|
||||
// must be kept in sync with RingRTC (ringrtc-node).
|
||||
// Whenever you change this, make sure you change RingRTC as well.
|
||||
|
||||
type ProtobufArrayBuffer = ArrayBuffer | { toArrayBuffer: () => ArrayBuffer };
|
||||
|
||||
export type DeviceId = number;
|
||||
|
||||
export type CallId = any;
|
||||
|
@ -938,7 +941,8 @@ export class AnswerMessageClass {
|
|||
export class IceCandidateMessageClass {
|
||||
callId?: CallId;
|
||||
mid?: string;
|
||||
midIndex?: number;
|
||||
line?: number;
|
||||
opaque?: ProtobufArrayBuffer;
|
||||
sdp?: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue