diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-04-12 23:22:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 04:22:38 +0200 |
commit | e34da54271ed8027d337a484f0ec00749c71a53b (patch) | |
tree | 7d0e15f471bf1000ab7eb552350dff8648de0f05 /src/plugins/messageLogger | |
parent | cfe41ef656085e3b3ed2e0ac68020b546045b55b (diff) | |
download | Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.gz Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.tar.bz2 Vencord-e34da54271ed8027d337a484f0ec00749c71a53b.zip |
Option to transform emotes/stickers in compound messages (#876)
+ ContextMenu refactor to not call callbacks for same children multiple times
Co-authored-by: V <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/messageLogger')
-rw-r--r-- | src/plugins/messageLogger/index.tsx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index 8199271..808fd34 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -49,7 +49,6 @@ const patchMessageContextMenu: NavContextMenuPatchCallback = (children, props) = const { deleted, editHistory, id, channel_id } = message; if (!deleted && !editHistory?.length) return; - if (children.some(c => c?.props?.id === MENU_ITEM_ID)) return; children.push(( <Menu.MenuItem |