fix: NoPendingCount (#1886)

This commit is contained in:
Amia 2023-10-25 23:26:50 +02:00 committed by GitHub
parent ec9e111047
commit 635b80c58b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;"
}
},