From 1fcd10589de3ecbfa48562a28cbf29bab0bbc8c9 Mon Sep 17 00:00:00 2001 From: DuckieTM Date: Sat, 28 Mar 2026 08:38:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=20Start=20the=20forum=20framework?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communication/src/messages/outgoing/OutgoingHeader.ts | 4 ++-- .../src/messages/parser/group/GroupInformationParser.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/communication/src/messages/outgoing/OutgoingHeader.ts b/packages/communication/src/messages/outgoing/OutgoingHeader.ts index 72fe5b8..dba57f8 100644 --- a/packages/communication/src/messages/outgoing/OutgoingHeader.ts +++ b/packages/communication/src/messages/outgoing/OutgoingHeader.ts @@ -65,8 +65,8 @@ export class OutgoingHeader public static GROUP_CREATE_OPTIONS = 798; public static GROUP_FAVORITE = 3549; public static GET_FORUM_STATS = 3149; - public static GET_FORUM_THREADS = 873; - public static GET_FORUMS_LIST = 436; + public static GET_FORUM_THREADS = 436; + public static GET_FORUMS_LIST = 873; public static GET_FORUM_MESSAGES = 232; public static GET_FORUM_THREAD = 3900; public static GET_UNREAD_FORUMS_COUNT = 2908; diff --git a/packages/communication/src/messages/parser/group/GroupInformationParser.ts b/packages/communication/src/messages/parser/group/GroupInformationParser.ts index c73706b..00a71e5 100644 --- a/packages/communication/src/messages/parser/group/GroupInformationParser.ts +++ b/packages/communication/src/messages/parser/group/GroupInformationParser.ts @@ -19,6 +19,7 @@ export class GroupInformationParser implements IMessageParser private _flag: boolean; private _canMembersDecorate: boolean; private _pendingRequestsCount: number; + private _hasForum: boolean; public flush(): boolean { @@ -39,6 +40,7 @@ export class GroupInformationParser implements IMessageParser this._flag = false; this._canMembersDecorate = false; this._pendingRequestsCount = 0; + this._hasForum = false; return true; } @@ -65,6 +67,7 @@ export class GroupInformationParser implements IMessageParser this._flag = wrapper.readBoolean(); this._canMembersDecorate = wrapper.readBoolean(); this._pendingRequestsCount = wrapper.readInt(); + this._hasForum = wrapper.readBoolean(); return true; } @@ -153,4 +156,9 @@ export class GroupInformationParser implements IMessageParser { return this._pendingRequestsCount; } + + public get hasForum(): boolean + { + return this._hasForum; + } }