@mtcute/convert 0.28.1 → 0.29.0

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.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@mtcute/convert",
3
3
  "type": "module",
4
- "version": "0.28.1",
4
+ "version": "0.29.0",
5
5
  "description": "Cross-library session conversion utilities",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@mtcute/core": "^0.28.1",
8
+ "@mtcute/core": "^0.29.0",
9
9
  "@fuman/utils": "0.0.19",
10
10
  "@fuman/net": "0.0.19",
11
11
  "@fuman/io": "0.0.19"
12
12
  },
13
13
  "peerDependencies": {
14
- "@mtcute/node": "^0.28.1"
14
+ "@mtcute/node": "^0.29.0"
15
15
  },
16
16
  "exports": {
17
17
  ".": {
@@ -295,7 +295,7 @@ class Tdata {
295
295
  const legacyUserId = io.read.int32be(bytes);
296
296
  const legacyMainDcId = io.read.int32be(bytes);
297
297
  let userId, mainDcId;
298
- if (legacyMainDcId === -1 && legacyMainDcId === -1) {
298
+ if (legacyUserId === -1 && legacyMainDcId === -1) {
299
299
  userId = qtReader.readLong(bytes);
300
300
  mainDcId = io.read.int32be(bytes);
301
301
  } else {
package/tdesktop/tdata.js CHANGED
@@ -266,7 +266,7 @@ class Tdata {
266
266
  const legacyUserId = read.int32be(bytes);
267
267
  const legacyMainDcId = read.int32be(bytes);
268
268
  let userId, mainDcId;
269
- if (legacyMainDcId === -1 && legacyMainDcId === -1) {
269
+ if (legacyUserId === -1 && legacyMainDcId === -1) {
270
270
  userId = readLong(bytes);
271
271
  mainDcId = read.int32be(bytes);
272
272
  } else {