diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-01-16 23:33:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 03:33:33 +0100 |
commit | 5fe0600d6ce8679248d475b6c6251b8eea3a33d4 (patch) | |
tree | 3f5b514c3653ebbfec48c56aeda39d5d061cd79c /src/plugins | |
parent | ebdcbcaf0cd7d49106672d622213951bd5dfc0ae (diff) | |
download | Vencord-5fe0600d6ce8679248d475b6c6251b8eea3a33d4.tar.gz Vencord-5fe0600d6ce8679248d475b6c6251b8eea3a33d4.tar.bz2 Vencord-5fe0600d6ce8679248d475b6c6251b8eea3a33d4.zip |
Fix Message Popover API (#425)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/apiMessagePopover.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/apiMessagePopover.ts b/src/plugins/apiMessagePopover.ts index 95814e0..e9d712a 100644 --- a/src/plugins/apiMessagePopover.ts +++ b/src/plugins/apiMessagePopover.ts @@ -26,8 +26,8 @@ export default definePlugin({ patches: [{ find: "Messages.MESSAGE_UTILITIES_A11Y_LABEL", replacement: { - match: /(message:(.).{0,100}Fragment,\{children:\[)(.{0,90}renderPopout:.{0,200}message_reaction_emoji_picker.+?return (.{1,3})\(.{0,30}"add-reaction")/, - replace: "$1...Vencord.Api.MessagePopover._buildPopoverElements($2,$4),$3" + match: /\?(?<makeButton>\i)\(.{1,35}\.Messages\.CONFIGURE.+?message:(?<message>\i).+?children:\[/, + replace: "$&...Vencord.Api.MessagePopover._buildPopoverElements($<message>,$<makeButton>)," } }], }); |