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