diff options
Diffstat (limited to 'src/plugins/pinDms/contextMenus.tsx')
-rw-r--r-- | src/plugins/pinDms/contextMenus.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pinDms/contextMenus.tsx b/src/plugins/pinDms/contextMenus.tsx index b04ba8c..d75c9f9 100644 --- a/src/plugins/pinDms/contextMenus.tsx +++ b/src/plugins/pinDms/contextMenus.tsx @@ -49,13 +49,13 @@ function PinMenuItem(channelId: string) { ); } -const GroupDMContext: NavContextMenuPatchCallback = (children, props) => { +const GroupDMContext: NavContextMenuPatchCallback = (children, props) => () => { const container = findGroupChildrenByChildId("leave-channel", children); if (container) container.unshift(PinMenuItem(props.channel.id)); }; -const UserContext: NavContextMenuPatchCallback = (children, props) => { +const UserContext: NavContextMenuPatchCallback = (children, props) => () => { const container = findGroupChildrenByChildId("close-dm", children); if (container) { const idx = container.findIndex(c => c?.props?.id === "close-dm"); |