diff --git a/app/components/DialogInput/DialogInput.tsx b/app/components/DialogInput/DialogInput.tsx index 4f3977c..f1c3aef 100644 --- a/app/components/DialogInput/DialogInput.tsx +++ b/app/components/DialogInput/DialogInput.tsx @@ -229,6 +229,12 @@ export function DialogInput() { } const onPaste = async (event: React.ClipboardEvent) => { + if(systemAccounts.find((acc) => acc.publicKey == dialog)){ + /** + * У системных аккаунтов нельзя вызывать вложения + */ + return; + } if(attachments.length >= MAX_ATTACHMENTS_IN_MESSAGE){ return; } @@ -249,7 +255,9 @@ export function DialogInput() { preview: await base64ImageToBlurhash(base64Image) }]); } - editableDivRef.current.focus(); + if(editableDivRef.current){ + editableDivRef.current.focus(); + } break; } }