diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-01-21 10:37:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-21 14:37:36 +0100 |
commit | 64180362fda076519c310f74e9245c94543edd39 (patch) | |
tree | 7f67fa893662f6c89d5a398f25ce72d2f6aed5ed /src/plugins/ignoreActivities.tsx | |
parent | 6e44b8c47ebf6a59caef130d58fb90a102a88479 (diff) | |
download | Vencord-64180362fda076519c310f74e9245c94543edd39.tar.gz Vencord-64180362fda076519c310f74e9245c94543edd39.tar.bz2 Vencord-64180362fda076519c310f74e9245c94543edd39.zip |
ViewIcons: Fix finding ImageModal and props passing to MaskedLink (#442)
* Fix finding ImageModal and props passing to MaskedLink
* gonna stick this here
Diffstat (limited to 'src/plugins/ignoreActivities.tsx')
-rw-r--r-- | src/plugins/ignoreActivities.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ignoreActivities.tsx b/src/plugins/ignoreActivities.tsx index 3b1ee98..300caf7 100644 --- a/src/plugins/ignoreActivities.tsx +++ b/src/plugins/ignoreActivities.tsx @@ -158,7 +158,7 @@ export default definePlugin({ find: '.displayName="LocalActivityStore"', replacement: { match: /(?<activities>.)\.push\(.\({type:.\..{1,3}\.LISTENING.+?\)\)/, - replace: "$&;$<activities>=$<activities>.filter(Vencord.Plugins.plugins.IgnoreActivities.isActivityIgnored);" + replace: "$&;$<activities>=$<activities>.filter(Vencord.Plugins.plugins.IgnoreActivities.isActivityNotIgnored);" } }], @@ -205,7 +205,7 @@ export default definePlugin({ ); }, - isActivityIgnored(props: { type: number; application_id?: string; name?: string; }) { + isActivityNotIgnored(props: { type: number; application_id?: string; name?: string; }) { if (props.type === 0) { if (props.application_id !== undefined) return !ignoredActivitiesCache.has(props.application_id); else { |