1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-26 17:26:22 +00:00

fix: NoPendingCount (#1886)

This commit is contained in:
Amia 2023-10-25 23:26:50 +02:00 committed by Luna
parent ffbbdedf62
commit faed7c5f0e

View file

@ -55,18 +55,18 @@ export default definePlugin({
// or by searching for "showProgressBadge:" // or by searching for "showProgressBadge:"
patches: [ patches: [
{ {
find: ".getPendingCount=", find: "getPendingCount(){",
predicate: () => settings.store.hideFriendRequestsCount, predicate: () => settings.store.hideFriendRequestsCount,
replacement: { replacement: {
match: /(?<=\.getPendingCount=function\(\)\{)/, match: /(?<=getPendingCount\(\)\{)/,
replace: "return 0;" replace: "return 0;"
} }
}, },
{ {
find: ".getMessageRequestsCount=", find: "getMessageRequestsCount(){",
predicate: () => settings.store.hideMessageRequestsCount, predicate: () => settings.store.hideMessageRequestsCount,
replacement: { replacement: {
match: /(?<=\.getMessageRequestsCount=function\(\)\{)/, match: /(?<=getMessageRequestsCount\(\)\{)/,
replace: "return 0;" replace: "return 0;"
} }
}, },