Update to RingRTC v2.36.0
This commit is contained in:
parent
038194c946
commit
861f35aa53
5 changed files with 13 additions and 40 deletions
|
@ -238,10 +238,8 @@ function protoToCallingMessage({
|
|||
offer,
|
||||
answer,
|
||||
iceCandidates,
|
||||
legacyHangup,
|
||||
busy,
|
||||
hangup,
|
||||
supportsMultiRing,
|
||||
destinationDeviceId,
|
||||
opaque,
|
||||
}: Proto.ICallingMessage): CallingMessage {
|
||||
|
@ -273,14 +271,6 @@ function protoToCallingMessage({
|
|||
? new AnswerMessage(answer.callId, Buffer.from(answer.opaque))
|
||||
: undefined,
|
||||
iceCandidates: newIceCandidates.length > 0 ? newIceCandidates : undefined,
|
||||
legacyHangup:
|
||||
legacyHangup && legacyHangup.callId
|
||||
? new HangupMessage(
|
||||
legacyHangup.callId,
|
||||
dropNull(legacyHangup.type) as number,
|
||||
legacyHangup.deviceId || 0
|
||||
)
|
||||
: undefined,
|
||||
busy: busy && busy.callId ? new BusyMessage(busy.callId) : undefined,
|
||||
hangup:
|
||||
hangup && hangup.callId
|
||||
|
@ -290,7 +280,6 @@ function protoToCallingMessage({
|
|||
hangup.deviceId || 0
|
||||
)
|
||||
: undefined,
|
||||
supportsMultiRing: dropNull(supportsMultiRing),
|
||||
destinationDeviceId: dropNull(destinationDeviceId),
|
||||
opaque: opaque
|
||||
? {
|
||||
|
|
|
@ -13,10 +13,8 @@ export function callingMessageToProto(
|
|||
offer,
|
||||
answer,
|
||||
iceCandidates,
|
||||
legacyHangup,
|
||||
busy,
|
||||
hangup,
|
||||
supportsMultiRing,
|
||||
destinationDeviceId,
|
||||
opaque,
|
||||
}: CallingMessage,
|
||||
|
@ -61,13 +59,6 @@ export function callingMessageToProto(
|
|||
};
|
||||
})
|
||||
: undefined,
|
||||
legacyHangup: legacyHangup
|
||||
? {
|
||||
...legacyHangup,
|
||||
callId: Long.fromValue(legacyHangup.callId),
|
||||
type: legacyHangup.type as number,
|
||||
}
|
||||
: undefined,
|
||||
busy: busy
|
||||
? {
|
||||
...busy,
|
||||
|
@ -81,7 +72,6 @@ export function callingMessageToProto(
|
|||
type: hangup.type as number,
|
||||
}
|
||||
: undefined,
|
||||
supportsMultiRing,
|
||||
destinationDeviceId,
|
||||
opaque: opaqueField,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue