BetterFolders: Fix FolderItem

This commit is contained in:
thororen1234 2026-04-26 16:10:32 -04:00
parent 26dfa1308c
commit 24711e611a
No known key found for this signature in database

View file

@ -64,7 +64,7 @@ type FolderMentionProps = {
export const ExpandedGuildFolderStore = findStoreLazy("ExpandedGuildFolderStore");
export const SortedGuildStore = findStoreLazy("SortedGuildStore");
const FolderUtils = findByPropsLazy("move", "toggleGuildFolderExpand");
const FolderItem = findComponentByCodeLazy("folderButtonContent", "onHoverChange", "treeItemProps");
const FolderItem = findComponentByCodeLazy("FolderItem", "onExpandCollapse", "folderButtonSize");
const MAX_TREE_FILTER_DEPTH = 1000;
let dispatchingFoldersClose = false;
@ -529,6 +529,13 @@ export default definePlugin({
match: /`transitionTo - Transitioning to \$\{\i\}`\);/,
replace: "$&$self.handleRouteNavigation(arguments[0]);"
}
},
{
find: ".getCompatibleGuildFolders())",
replacement: {
match: /\i:\(\)=>\i(?=.*?\.FOLDER_ITEM_ANIMATION_DURATION.{0,10}\.animated\)\(\i\.\i\),(\i))/,
replace: "$&,FolderItem:()=>$1"
}
}
],