mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 21:33:35 -05:00
Fixes
This commit is contained in:
parent
7ed696c742
commit
ba37eec5eb
2 changed files with 3 additions and 3 deletions
|
@ -189,8 +189,8 @@ export default definePlugin({
|
|||
find: "PrivateChannel.renderAvatar",
|
||||
replacement: {
|
||||
// horror but it works
|
||||
match: /function\(\i,(\i),\i\){.*,\[\i,\i,\i\]\);/,
|
||||
replace: "$&if($1.rawRecipients[0] != null){if($1.rawRecipients[0].id != null){if($self.shouldHideUser($1.rawRecipients[0].id)) return null;}}"
|
||||
match: /(function\(\i,(\i),\i\){.*)(return \i\.isMultiUserDM\(\))/,
|
||||
replace: "$1if($2.rawRecipients[0] != null){if($2.rawRecipients[0].id != null){if($self.shouldHideUser($2.rawRecipients[0].id)) return null;}}$3"
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
{
|
||||
find: "Messages.STATUS_MENU_LABEL",
|
||||
find: /"aria-label":.{0,3}\.Messages.STATUS_MENU_LABEL/,
|
||||
replacement: {
|
||||
match: /!\i&&(.{0,15}\i\.Fragment.{0,55}null==(\i).{0,200}customEmojiPlaceholder\}\),onClick:([^}]+}))/,
|
||||
replace: "$self.render($2, $3),false&&$1"
|
||||
|
|
Loading…
Reference in a new issue