mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 19:37:01 -04:00
ViewIcons: Fix finding ImageModal and props passing to MaskedLink (#442)
* Fix finding ImageModal and props passing to MaskedLink * gonna stick this here
This commit is contained in:
parent
6e44b8c47e
commit
64180362fd
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue