فهرست منبع

GramJS: An attempt to fix the sudden logout bug #256

painor 5 سال پیش
والد
کامیت
8d1db3eb4c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/lib/gramjs/crypto/AuthKey.js

+ 1 - 1
src/lib/gramjs/crypto/AuthKey.js

@@ -67,7 +67,7 @@ class AuthKey {
     }
 
     equals(other) {
-        return other instanceof this.constructor && other.getKey() === this._key
+        return other instanceof this.constructor && this._key && other.getKey() && other.getKey().equals(this._key)
     }
 }