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:
@ -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
|
||||
|
Reference in New Issue
Block a user