translate: Add context menu item; fix MLE compatibility
This commit is contained in:
parent
2a318e390e
commit
7cd1d4c60f
2 changed files with 27 additions and 1 deletions
|
|
@ -44,6 +44,9 @@ export function TranslationAccessory({ message }: { message: Message; }) {
|
|||
const [translation, setTranslation] = useState<TranslationValue>();
|
||||
|
||||
useEffect(() => {
|
||||
// Ignore MessageLinkEmbeds messages
|
||||
if ((message as any).vencordEmbeddedBy) return;
|
||||
|
||||
TranslationSetters.set(message.id, setTranslation);
|
||||
|
||||
return () => void TranslationSetters.delete(message.id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue