fix AccountPanelServerProfile (#3995)

This commit is contained in:
thororen 2026-02-16 14:34:51 -05:00 committed by GitHub
parent 38c490533b
commit 5fc677bb26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -79,7 +79,7 @@ export default definePlugin({
replace: "$&$self.onPopoutClose();"
},
{
match: /#{intl::SET_STATUS}\)(?<=innerRef:(\i),style:.+?)/,
match: /ref:(\i),style:\i(?=.{0,250}#{intl::5fWB8U::raw})/,
replace: "$&,onContextMenu:($self.grabRef($1),$self.openAccountPanelContextMenu)"
}
]

View file

@ -100,7 +100,7 @@ export default definePlugin({
{
find: "useCanFavoriteChannel",
replacement: {
match: /\i\.isDM\(\)\|\|\i\.isThread\(\)/,
match: /(?<=isFavorite\(\i\.id\).{0,5})\i\.isThread\(\)/,
replace: "false",
}
},

View file

@ -408,7 +408,7 @@ export default definePlugin({
},
{
// Remove the open chat button for the HiddenChannelLockScreen
match: /(?<="participants-list-button"\),!\i&&)\(0,\i\.jsxs?\).{0,280}?iconClassName:/,
match: /(?<=numRequestToSpeak:\i\}\)\}\):null,!\i&&)\(0,\i\.jsxs?\).{0,280}?iconClassName:/,
replace: "!$self.isHiddenChannel(arguments[0]?.channel,true)&&$&"
}
]