mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-08 14:13:01 -04:00
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>
This commit is contained in:
parent
cfe41ef656
commit
e34da54271
9 changed files with 69 additions and 112 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue