From 2e6c5eacf7d6f3ec92da14fb91302f490962cad5 Mon Sep 17 00:00:00 2001 From: Đỗ Văn Hoài Tuân Date: Wed, 5 Apr 2023 18:02:53 -0700 Subject: BetterFolders: Fix Close all not working (#808) --- src/plugins/betterFolders/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/betterFolders/index.ts b/src/plugins/betterFolders/index.ts index 1b6ce4e..d0e61c0 100644 --- a/src/plugins/betterFolders/index.ts +++ b/src/plugins/betterFolders/index.ts @@ -67,7 +67,7 @@ const settings = definePluginSettings({ export default definePlugin({ name: "BetterFolders", description: "Shows server folders on dedicated sidebar and adds folder related improvements", - authors: [Devs.juby], + authors: [Devs.juby, Devs.AutumnVN], patches: [ { find: '("guildsnav")', @@ -122,7 +122,7 @@ export default definePlugin({ settings, start() { - const getGuildFolder = (id: string) => GuildFolderStore.guildFolders.find(f => f.guildIds.includes(id)); + const getGuildFolder = (id: string) => GuildFolderStore.getGuildFolders().find(f => f.guildIds.includes(id)); FluxDispatcher.subscribe("CHANNEL_SELECT", this.onSwitch = data => { if (!settings.store.closeAllFolders && !settings.store.forceOpen) -- cgit