@mtkruto/node 0.0.979 → 0.0.980

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.
@@ -566,15 +566,16 @@ export class Client extends ClientAbstract {
566
566
  this.promises.delete(message.body.msgId);
567
567
  }
568
568
  }
569
- else if (message.body instanceof types.BadMsgNotification || message.body instanceof types.BadServerSalt) {
569
+ else if (message.body instanceof types.TypeBadMsgNotification || message.body instanceof types.BadServerSalt) {
570
570
  if (message.body instanceof types.BadServerSalt) {
571
+ d("server salt reassigned");
571
572
  this.state.salt = message.body.newServerSalt;
572
573
  }
573
- const promise = this.promises.get(message.body.badMsgId);
574
- if (promise) {
575
- promise.resolve(message.body);
576
- this.promises.delete(message.body.badMsgId);
577
- }
574
+ // const promise = this.promises.get(message.body.badMsgId);
575
+ // if (promise) {
576
+ // promise.resolve(message.body);
577
+ // this.promises.delete(message.body.badMsgId);
578
+ // }
578
579
  }
579
580
  this.toAcknowledge.add(message.id);
580
581
  }
@@ -5,7 +5,7 @@ export declare const PUBLIC_KEYS: PublicKeys;
5
5
  export declare const VECTOR_CONSTRUCTOR = 481674261;
6
6
  export declare const INITIAL_DC: DC;
7
7
  export declare const LAYER = 160;
8
- export declare const APP_VERSION = "MTKruto 0.0.979";
8
+ export declare const APP_VERSION = "MTKruto 0.0.980";
9
9
  export declare const DEVICE_MODEL: string;
10
10
  export declare const LANG_CODE: string;
11
11
  export declare const LANG_PACK = "";
package/esm/constants.js CHANGED
@@ -54,7 +54,7 @@ export const PUBLIC_KEYS = Object.freeze([
54
54
  export const VECTOR_CONSTRUCTOR = 0x1CB5C415;
55
55
  export const INITIAL_DC = "2-test";
56
56
  export const LAYER = 160;
57
- export const APP_VERSION = "MTKruto 0.0.979";
57
+ export const APP_VERSION = "MTKruto 0.0.980";
58
58
  // @ts-ignore: lib
59
59
  export const DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
60
60
  export const LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "module": "./esm/mod.js",
3
3
  "main": "./script/mod.js",
4
4
  "name": "@mtkruto/node",
5
- "version": "0.0.979",
5
+ "version": "0.0.980",
6
6
  "description": "MTKruto for Node.js",
7
7
  "author": "Roj <rojvv@icloud.com>",
8
8
  "license": "LGPL-3.0-or-later",
@@ -592,15 +592,16 @@ class Client extends _1_client_abstract_js_1.ClientAbstract {
592
592
  this.promises.delete(message.body.msgId);
593
593
  }
594
594
  }
595
- else if (message.body instanceof types.BadMsgNotification || message.body instanceof types.BadServerSalt) {
595
+ else if (message.body instanceof types.TypeBadMsgNotification || message.body instanceof types.BadServerSalt) {
596
596
  if (message.body instanceof types.BadServerSalt) {
597
+ d("server salt reassigned");
597
598
  this.state.salt = message.body.newServerSalt;
598
599
  }
599
- const promise = this.promises.get(message.body.badMsgId);
600
- if (promise) {
601
- promise.resolve(message.body);
602
- this.promises.delete(message.body.badMsgId);
603
- }
600
+ // const promise = this.promises.get(message.body.badMsgId);
601
+ // if (promise) {
602
+ // promise.resolve(message.body);
603
+ // this.promises.delete(message.body.badMsgId);
604
+ // }
604
605
  }
605
606
  this.toAcknowledge.add(message.id);
606
607
  }
@@ -5,7 +5,7 @@ export declare const PUBLIC_KEYS: PublicKeys;
5
5
  export declare const VECTOR_CONSTRUCTOR = 481674261;
6
6
  export declare const INITIAL_DC: DC;
7
7
  export declare const LAYER = 160;
8
- export declare const APP_VERSION = "MTKruto 0.0.979";
8
+ export declare const APP_VERSION = "MTKruto 0.0.980";
9
9
  export declare const DEVICE_MODEL: string;
10
10
  export declare const LANG_CODE: string;
11
11
  export declare const LANG_PACK = "";
@@ -80,7 +80,7 @@ exports.PUBLIC_KEYS = Object.freeze([
80
80
  exports.VECTOR_CONSTRUCTOR = 0x1CB5C415;
81
81
  exports.INITIAL_DC = "2-test";
82
82
  exports.LAYER = 160;
83
- exports.APP_VERSION = "MTKruto 0.0.979";
83
+ exports.APP_VERSION = "MTKruto 0.0.980";
84
84
  // @ts-ignore: lib
85
85
  exports.DEVICE_MODEL = typeof dntShim.Deno === "undefined" ? typeof navigator === "undefined" ? typeof process === "undefined" ? "Unknown" : process.platform + "-" + process.arch : navigator.userAgent.split(" ")[0] : dntShim.Deno.build.os + "-" + dntShim.Deno.build.arch;
86
86
  exports.LANG_CODE = typeof navigator === "undefined" ? "en" : navigator.language.split("-")[0];