Преглед на файлове

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