mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-12 04:43:59 -05:00
Fix BetterActivities
This commit is contained in:
parent
ee442d81e2
commit
b576c91320
1 changed files with 4 additions and 4 deletions
|
@ -459,17 +459,17 @@ export default definePlugin({
|
|||
patches: [
|
||||
{
|
||||
// Patch activity icons
|
||||
find: ".getHangStatusActivity():null!",
|
||||
find: '"activity-status-web"',
|
||||
replacement: {
|
||||
match: /null!=(\i)&&\i.some\(\i=>\(0,\i.\i\)\(\i,\i\)\)\?/,
|
||||
replace: "$self.patchActivityList(e),false?"
|
||||
match: /\(null==\i?\?void 0:\i.some\(\i\.\i\)\)/,
|
||||
replace: "$self.patchActivityList(e),false"
|
||||
},
|
||||
predicate: () => settings.store.memberList,
|
||||
},
|
||||
{
|
||||
// Show all activities in the user popout/sidebar
|
||||
// still broken btw
|
||||
find: '"UserActivityContainer"',
|
||||
find: "#{intl::ACTIVITY_REACTION_REPLY_TITLE}",
|
||||
replacement: {
|
||||
match: /(?<=\(0,\i\.jsx\)\()(\i\.\i)(?=,{...(\i),activity:\i,user:\i,application:\i)/,
|
||||
replace: "$2.type==='BiteSizePopout'?$self.showAllActivitiesComponent:$1"
|
||||
|
|
Loading…
Reference in a new issue