ShowHiddenChannels: Fix incorrectly fetching messages

This commit is contained in:
Nuckyz 2025-05-29 17:01:08 -03:00
parent b706d53998
commit 2a4314efc9
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -267,7 +267,7 @@ export default definePlugin({
{ {
find: '"MessageManager"', find: '"MessageManager"',
replacement: { replacement: {
match: /"Skipping fetch because channelId is a static route"\);return}(?=.+?getChannel\((\i)\))/, match: /forceFetch:\i,isPreload:.+?}=\i;(?=.+?getChannel\((\i)\))/,
replace: (m, channelId) => `${m}if($self.isHiddenChannel({channelId:${channelId}}))return;` replace: (m, channelId) => `${m}if($self.isHiddenChannel({channelId:${channelId}}))return;`
} }
}, },