@signalapp/ringrtc 2.66.0 → 2.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
669
669
 
670
670
  ```
671
671
 
672
- ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.66.0, protobuf 2.66.0, ringrtc 2.66.0, regex-aot 0.1.0, partial-default-derive 0.1.0, partial-default 0.1.0
672
+ ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.66.1, protobuf 2.66.1, ringrtc 2.66.1, regex-aot 0.1.0, partial-default-derive 0.1.0, partial-default 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -584,11 +584,7 @@ declare class GroupCallVideoFrameSource {
584
584
  }
585
585
  export type UserId = string;
586
586
  export type DeviceId = number;
587
- export type CallId = {
588
- high: number;
589
- low: number;
590
- unsigned: boolean;
591
- };
587
+ export type CallId = bigint;
592
588
  export declare class CallingMessage {
593
589
  offer?: OfferMessage;
594
590
  answer?: AnswerMessage;
@@ -16,11 +16,7 @@ const Native_1 = __importDefault(require("./Native"));
16
16
  const INVALID_CLIENT_ID = 0;
17
17
  exports.callIdFromEra = Native_1.default.callIdFromEra;
18
18
  function callIdFromRingId(ringId) {
19
- return {
20
- low: Number(BigInt.asIntN(32, ringId)),
21
- high: Number(BigInt.asIntN(32, ringId >> BigInt(32))),
22
- unsigned: true,
23
- };
19
+ return ringId;
24
20
  }
25
21
  class Config {
26
22
  }
@@ -266,11 +262,7 @@ class CallInfo {
266
262
  }
267
263
  class RingRTCType {
268
264
  getCallInfoKey(callId) {
269
- // CallId is u64 so use a string key instead.
270
- // Note that the representation is not padded, so we include a separator.
271
- // Otherwise {1, 123} and {11, 23} would have the same key.
272
- // (We could use Long.toString as well, but it doesn't matter what the key is.)
273
- return `${callId.high} ${callId.low}`;
265
+ return callId.toString();
274
266
  }
275
267
  constructor() {
276
268
  // Set by UX
@@ -1171,9 +1163,7 @@ class RingRTCType {
1171
1163
  }
1172
1164
  getCall(callId) {
1173
1165
  const call = this.call;
1174
- if (call &&
1175
- call.callId.high === callId.high &&
1176
- call.callId.low === callId.low) {
1166
+ if (call && call.callId === callId) {
1177
1167
  return call;
1178
1168
  }
1179
1169
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.66.0",
3
+ "version": "2.66.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/signalapp/ringrtc.git",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "config": {
35
35
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
36
- "prebuildChecksum": "b2302bbb458747a5475bca520b0e0c6bcb7ed487b2370dea9e6ed4bc541c0984"
36
+ "prebuildChecksum": "3964881a5e84cf42c2de3cbda797bdf020cf2a7ef7f456e90d67cdca9996267a"
37
37
  },
38
38
  "author": "",
39
39
  "license": "AGPL-3.0-only",
@@ -59,7 +59,6 @@
59
59
  "eslint-plugin-mocha": "10.2.0",
60
60
  "eslint-plugin-more": "1.0.5",
61
61
  "lodash": "4.17.23",
62
- "long": "5.3.2",
63
62
  "mocha": "11.3.0",
64
63
  "prettier": "3.7.4",
65
64
  "rimraf": "6.1.2",