Forráskód Böngészése

Fix isGroup in getDialogs

painor 3 éve
szülő
commit
edcb100278
1 módosított fájl, 1 hozzáadás és 1 törlés
  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)
         );