NoPendingCount: Fix for message requests

main
Nuckyz 5 months ago committed by Vendicated
parent ed5ae2ba5c
commit 23584393a9
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

@ -62,6 +62,16 @@ export default definePlugin({
replace: "return 0;"
}
},
// New message requests hook
{
find: "useNewMessageRequestsCount:",
predicate: () => settings.store.hideMessageRequestsCount,
replacement: {
match: /getNonChannelAckId\(\i\.\i\.MESSAGE_REQUESTS\).+?return /,
replace: "$&0;"
}
},
// Old message requests hook
{
find: "getMessageRequestsCount(){",
predicate: () => settings.store.hideMessageRequestsCount,

Loading…
Cancel
Save