mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 08:46:25 +00:00
fix(betterActivities): only patch BiteSizePopout type
We don't want to patch the user modal activity tab for example
This commit is contained in:
parent
5824528add
commit
a2e089716a
1 changed files with 2 additions and 2 deletions
|
@ -256,8 +256,8 @@ export default definePlugin({
|
|||
// Show all activities in the user popout/sidebar
|
||||
find: '"UserActivityContainer"',
|
||||
replacement: {
|
||||
match: /(?<=\(0,\i\.jsx\)\()\i\.\i(?=,{type:\i.\i.BITE_SIZE_POPOUT,activity:\i,className:\i\.activity,source:\i,user:\i)/,
|
||||
replace: "$self.showAllActivitiesComponent"
|
||||
match: /(?<=\(0,\i\.jsx\)\()(\i\.\i)(?=,{...(\i),activity:\i,user:\i,application:\i)/,
|
||||
replace: "$2.type==='BiteSizePopout'?$self.showAllActivitiesComponent:$1"
|
||||
},
|
||||
predicate: () => settings.store.profiles
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue