From a2e089716a257dc965b05ffd069a59d90b8abaa4 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 11 Jul 2024 22:16:37 +0200 Subject: [PATCH] fix(betterActivities): only patch BiteSizePopout type We don't want to patch the user modal activity tab for example --- src/plugins/betterActivities/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/betterActivities/index.tsx b/src/plugins/betterActivities/index.tsx index 612657383..625b4e03d 100644 --- a/src/plugins/betterActivities/index.tsx +++ b/src/plugins/betterActivities/index.tsx @@ -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 },