浏览代码

Rollback WIP changes

painor 4 年之前
父节点
当前提交
a79184df08
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      gramjs/Version.ts
  2. 2 1
      gramjs/extensions/MessagePacker.ts
  3. 1 1
      package.json

+ 1 - 1
gramjs/Version.ts

@@ -1 +1 @@
-export const version = "1.7.15";
+export const version = "1.7.19";

+ 2 - 1
gramjs/extensions/MessagePacker.ts

@@ -34,6 +34,7 @@ export class MessagePacker {
     }
     }
 
 
     append(state: RequestState) {
     append(state: RequestState) {
+        /* TODO later. still need fixes
         // we need to check if there is already a request with the same name that we should send after.
         // we need to check if there is already a request with the same name that we should send after.
         if (USE_INVOKE_AFTER_WITH.includes(state.request.className)) {
         if (USE_INVOKE_AFTER_WITH.includes(state.request.className)) {
             // we now need to check if there is any request in queue already.
             // we now need to check if there is any request in queue already.
@@ -48,7 +49,7 @@ export class MessagePacker {
                 }
                 }
             }
             }
         }
         }
-
+        */
         this._queue.push(state);
         this._queue.push(state);
 
 
         if (this.setReady) {
         if (this.setReady) {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "telegram",
   "name": "telegram",
-  "version": "1.7.18",
+  "version": "1.7.19",
   "description": "NodeJS MTProto API Telegram client library,",
   "description": "NodeJS MTProto API Telegram client library,",
   "main": "index.js",
   "main": "index.js",
   "types": "index.d.ts",
   "types": "index.d.ts",