Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-06-01 23:41:49 -03:00
commit f5b1b65db8
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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,