diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-04-14 21:47:03 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 02:47:03 +0200 |
commit | 96f640da674e89824881070c4081b7aee212e619 (patch) | |
tree | 9d8dbdf97313c79410c8d1a2b380116d2b7d3a86 /src/plugins/searchReply.tsx | |
parent | e8809fc57bd1c679e9a84ae6adc949655e3a86ec (diff) | |
download | Vencord-96f640da674e89824881070c4081b7aee212e619.tar.gz Vencord-96f640da674e89824881070c4081b7aee212e619.tar.bz2 Vencord-96f640da674e89824881070c4081b7aee212e619.zip |
Make Context Menu API support hooks (#902)
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/searchReply.tsx')
-rw-r--r-- | src/plugins/searchReply.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/searchReply.tsx b/src/plugins/searchReply.tsx index 8c7b473..cb09f5b 100644 --- a/src/plugins/searchReply.tsx +++ b/src/plugins/searchReply.tsx @@ -28,7 +28,7 @@ const ReplyIcon = LazyComponent(() => findByCode("M10 8.26667V4L3 11.4667L10 18. const replyFn = findByCodeLazy("showMentionToggle", "TEXTAREA_FOCUS", "shiftKey"); -const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { message }: { message: Message; }) => { +const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { message }: { message: Message; }) => () => { // make sure the message is in the selected channel if (SelectedChannelStore.getChannelId() !== message.channel_id) return; @@ -61,7 +61,6 @@ const messageContextMenuPatch: NavContextMenuPatchCallback = (children, { messag /> )); } - }; |