From 829756bf56cdec8dfd817cffe2ab19ca5be1a257 Mon Sep 17 00:00:00 2001
From: MyNameIsBatman <montevechiol@gmail.com>
Date: Mon, 30 Aug 2021 20:02:37 -0300
Subject: [PATCH] Fix Group Information Parser

---
 .../messages/parser/group/GroupInformationParser.ts   | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/nitro/communication/messages/parser/group/GroupInformationParser.ts b/src/nitro/communication/messages/parser/group/GroupInformationParser.ts
index ef3899fd..0100dcfa 100644
--- a/src/nitro/communication/messages/parser/group/GroupInformationParser.ts
+++ b/src/nitro/communication/messages/parser/group/GroupInformationParser.ts
@@ -11,6 +11,7 @@ export class GroupInformationParser implements IMessageParser
     private _roomName: string;
     private _membershipType: number;
     private _membersCount: number;
+    private _isFavorite: boolean;
     private _createdAt: string;
     private _isOwner: boolean;
     private _isAdmin: boolean;
@@ -29,7 +30,8 @@ export class GroupInformationParser implements IMessageParser
         this._roomId                 = 0;
         this._roomName               = null;
         this._membershipType         = 0;
-        this._membersCount            = 0;
+        this._membersCount           = 0;
+        this._isFavorite             = false;
         this._createdAt              = null;
         this._isOwner                = false;
         this._isAdmin                = false;
@@ -55,7 +57,7 @@ export class GroupInformationParser implements IMessageParser
         this._roomName               = wrapper.readString();
         this._membershipType         = wrapper.readInt();
         this._membersCount           = wrapper.readInt();
-        wrapper.readBoolean();
+        this._isFavorite             = wrapper.readBoolean();
         this._createdAt              = wrapper.readString();
         this._isOwner                = wrapper.readBoolean();
         this._isAdmin                = wrapper.readBoolean();
@@ -112,6 +114,11 @@ export class GroupInformationParser implements IMessageParser
         return this._membersCount;
     }
 
+    public get isFavorite(): boolean
+    {
+        return this._isFavorite;
+    }
+
     public get createdAt(): string
     {
         return this._createdAt;