Update to RingRTC v2.19.0

Co-authored-by: Evan Hahn <evanhahn@signal.org>
This commit is contained in:
Jim Gustafson 2022-03-02 09:28:29 -08:00 committed by GitHub
parent 91119a261a
commit 637b67d9a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 10 deletions

View file

@ -162,7 +162,7 @@
"redux-ts-utils": "3.2.2", "redux-ts-utils": "3.2.2",
"reselect": "4.1.2", "reselect": "4.1.2",
"rimraf": "2.6.2", "rimraf": "2.6.2",
"ringrtc": "https://github.com/signalapp/signal-ringrtc-node.git#561484a82f75f64391da5ce9f48217db30e9ba4b", "ringrtc": "https://github.com/signalapp/signal-ringrtc-node.git#a32abe1c72df187b57b466078b3d9f2873ee6243",
"rotating-file-stream": "2.1.5", "rotating-file-stream": "2.1.5",
"sanitize.css": "11.0.0", "sanitize.css": "11.0.0",
"semver": "5.4.1", "semver": "5.4.1",

View file

@ -853,15 +853,21 @@ export class CallingClass {
peekInfo: PeekInfo peekInfo: PeekInfo
): GroupCallPeekInfoType { ): GroupCallPeekInfoType {
return { return {
uuids: peekInfo.joinedMembers.map(uuidBuffer => { uuids: peekInfo.devices.map(peekDeviceInfo => {
let uuid = bytesToUuid(uuidBuffer); if (peekDeviceInfo.userId) {
if (!uuid) { const uuid = bytesToUuid(peekDeviceInfo.userId);
if (uuid) {
return uuid;
}
log.error( log.error(
'Calling.formatGroupCallPeekInfoForRedux: could not convert peek UUID Uint8Array to string; using fallback UUID' 'Calling.formatGroupCallPeekInfoForRedux: could not convert peek UUID Uint8Array to string; using fallback UUID'
); );
uuid = '00000000-0000-0000-0000-000000000000'; } else {
log.error(
'Calling.formatGroupCallPeekInfoForRedux: device had no user ID; using fallback UUID'
);
} }
return uuid; return '00000000-0000-0000-0000-000000000000';
}), }),
creatorUuid: peekInfo.creator && bytesToUuid(peekInfo.creator), creatorUuid: peekInfo.creator && bytesToUuid(peekInfo.creator),
eraId: peekInfo.eraId, eraId: peekInfo.eraId,
@ -2094,7 +2100,7 @@ export class CallingClass {
const wasStartedByMe = Boolean( const wasStartedByMe = Boolean(
creatorConversation && isMe(creatorConversation.attributes) creatorConversation && isMe(creatorConversation.attributes)
); );
const isAnybodyElseInGroupCall = Boolean(peekInfo.joinedMembers.length); const isAnybodyElseInGroupCall = Boolean(peekInfo.devices.length);
if ( if (
isNewCall && isNewCall &&

View file

@ -13092,9 +13092,9 @@ rimraf@^3.0.0, rimraf@^3.0.2:
dependencies: dependencies:
glob "^7.1.3" glob "^7.1.3"
"ringrtc@https://github.com/signalapp/signal-ringrtc-node.git#561484a82f75f64391da5ce9f48217db30e9ba4b": "ringrtc@https://github.com/signalapp/signal-ringrtc-node.git#a32abe1c72df187b57b466078b3d9f2873ee6243":
version "2.18.0" version "2.19.0"
resolved "https://github.com/signalapp/signal-ringrtc-node.git#561484a82f75f64391da5ce9f48217db30e9ba4b" resolved "https://github.com/signalapp/signal-ringrtc-node.git#a32abe1c72df187b57b466078b3d9f2873ee6243"
ripemd160@^2.0.0, ripemd160@^2.0.1: ripemd160@^2.0.0, ripemd160@^2.0.1:
version "2.0.1" version "2.0.1"