浏览代码

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