fix: hide Open Original when sourceUrl is present to avoid redundancy

This commit is contained in:
Jannis Braun
2026-03-25 05:13:14 +01:00
parent e0d45da97c
commit f7fa7371d6
@@ -73,6 +73,7 @@ export function buildMessageMenuItems(params: MessageMenuParams): ContextMenuIte
copyImageToClipboard(imageUrl);
},
});
if (!sourceUrl) {
items.push({
key: 'open-original',
type: 'action',
@@ -86,6 +87,7 @@ export function buildMessageMenuItems(params: MessageMenuParams): ContextMenuIte
window.open(imageUrl, '_blank', 'noopener');
},
});
}
items.push({ key: 'image-sep', type: 'separator' });
}