mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 16:56:23 +00:00
fix: NoPendingCount (#1886)
This commit is contained in:
parent
ffbbdedf62
commit
faed7c5f0e
1 changed files with 4 additions and 4 deletions
|
@ -55,18 +55,18 @@ export default definePlugin({
|
|||
// or by searching for "showProgressBadge:"
|
||||
patches: [
|
||||
{
|
||||
find: ".getPendingCount=",
|
||||
find: "getPendingCount(){",
|
||||
predicate: () => settings.store.hideFriendRequestsCount,
|
||||
replacement: {
|
||||
match: /(?<=\.getPendingCount=function\(\)\{)/,
|
||||
match: /(?<=getPendingCount\(\)\{)/,
|
||||
replace: "return 0;"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: ".getMessageRequestsCount=",
|
||||
find: "getMessageRequestsCount(){",
|
||||
predicate: () => settings.store.hideMessageRequestsCount,
|
||||
replacement: {
|
||||
match: /(?<=\.getMessageRequestsCount=function\(\)\{)/,
|
||||
match: /(?<=getMessageRequestsCount\(\)\{)/,
|
||||
replace: "return 0;"
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue