mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 13:43:03 -04:00
ShowHiddenChannels: Fix incorrectly fetching messages
This commit is contained in:
parent
b706d53998
commit
2a4314efc9
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ export default definePlugin({
|
|||
{
|
||||
find: '"MessageManager"',
|
||||
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;`
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue