From 2fb6e7ebb3dbb0a6da83cb0bb13755e44d592e99 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 16 Mar 2022 19:43:15 -0400 Subject: [PATCH] Add GroupUnfavoriteComposer --- src/api/groups/ToggleFavoriteGroup.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/groups/ToggleFavoriteGroup.ts b/src/api/groups/ToggleFavoriteGroup.ts index ad1a669c..a4b929c1 100644 --- a/src/api/groups/ToggleFavoriteGroup.ts +++ b/src/api/groups/ToggleFavoriteGroup.ts @@ -1,8 +1,7 @@ -import { GroupFavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer'; +import { GroupFavoriteComposer, GroupUnfavoriteComposer, HabboGroupEntryData } from '@nitrots/nitro-renderer'; import { SendMessageComposer } from '..'; export const ToggleFavoriteGroup = (group: HabboGroupEntryData) => { - // new GroupUnfavoriteComposer(group.groupId) - SendMessageComposer(group.favourite ? null : new GroupFavoriteComposer(group.groupId)); + SendMessageComposer(group.favourite ? new GroupUnfavoriteComposer(group.groupId) : new GroupFavoriteComposer(group.groupId)); }