Actually works now, nice.

This commit is contained in:
byeoon 2025-01-30 23:22:28 -05:00
parent dc0aef360b
commit 2c47b13fe4

View file

@ -72,6 +72,9 @@ async function fetchSticker(id: string) {
function buildMenuItem(type: "Sticker", fetchData: () => Promisable<Omit<Sticker, "t">>) { function buildMenuItem(type: "Sticker", fetchData: () => Promisable<Omit<Sticker, "t">>) {
return ( return (
<>
<Menu.MenuSeparator></Menu.MenuSeparator>
<Menu.MenuItem <Menu.MenuItem
id="copystickerurl" id="copystickerurl"
key="copystickerurl" key="copystickerurl"
@ -90,10 +93,7 @@ function buildMenuItem(type: "Sticker", fetchData: () => Promisable<Omit<Sticker
} }
} }
/> />
);
}
/*
<Menu.MenuItem <Menu.MenuItem
id="openstickerlink" id="openstickerlink"
key="openstickerlink" key="openstickerlink"
@ -106,10 +106,15 @@ function buildMenuItem(type: "Sticker", fetchData: () => Promisable<Omit<Sticker
} }
} }
/> />
*/ </>
);
}
const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => { const messageContextMenuPatch: NavContextMenuPatchCallback = (children, props) => {
const { favoriteableId, itemHref, itemSrc, favoriteableType } = props ?? {}; const { favoriteableId, favoriteableType } = props ?? {};
if (!favoriteableId) return; if (!favoriteableId) return;
const menuItem = (() => { const menuItem = (() => {
switch (favoriteableType) { switch (favoriteableType) {