소스 검색

Fix isGroup in getDialogs

painor 3 년 전
부모
커밋
edcb100278
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      gramjs/tl/custom/dialog.ts

+ 1 - 1
gramjs/tl/custom/dialog.ts

@@ -60,7 +60,7 @@ export class Dialog {
 
         this.isUser = this.entity instanceof Api.User;
         this.isGroup = !!(
-            (this.entity instanceof Api.Chat &&
+            (this.entity instanceof Api.Chat ||
                 this.entity instanceof Api.ChatForbidden) ||
             (this.entity instanceof Api.Channel && this.entity.megagroup)
         );