fix: ShowConnections patch; chore: Remove dead code

This commit is contained in:
Nuckyz 2024-06-12 16:39:04 -03:00
parent 40c5ade82d
commit 0561bd1951
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
4 changed files with 6 additions and 12 deletions

View file

@ -73,9 +73,8 @@ export default definePlugin({
find: '"placeholder-channel-id"',
replacement: [
// Remove the special logic for channels we don't have access to
// FIXME Remove variable matcher from threadsIds when it hits stable
{
match: /if\(!\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL.+?{if\(this\.id===\i\).+?threadIds:(?:\[\]|\i)}}/,
match: /if\(!\i\.\i\.can\(\i\.\i\.VIEW_CHANNEL.+?{if\(this\.id===\i\).+?threadIds:\[\]}}/,
replace: ""
},
// Do not check for unreads when selecting the render level if the channel is hidden