From ff96dfd20485dc996a6a37f05d64be2a80930e1a Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Thu, 19 Feb 2026 19:37:37 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BA=D1=80=D0=B0?= =?UTF-8?q?=D1=88=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=BF=D0=BE=D0=BF=D1=8B?= =?UTF-8?q?=D1=82=D0=BA=D0=B5=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BD=D0=B0=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC?= =?UTF-8?q?=D0=BD=D0=BE=D0=B5=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/DialogInput/DialogInput.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; } }