소스 검색

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)
     }
 }