From 91b955d621fd706c72f07e43bf9c732c5cd206c3 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Sat, 21 Mar 2026 21:28:20 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B7=D0=B2=D0=BE=D0=BD=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D1=81?= =?UTF-8?q?=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/AttachmentProvider/usePrepareAttachment.ts | 6 ++++++ app/providers/CallProvider/CallProvider.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/providers/AttachmentProvider/usePrepareAttachment.ts b/app/providers/AttachmentProvider/usePrepareAttachment.ts index dc940bd..bb198fb 100644 --- a/app/providers/AttachmentProvider/usePrepareAttachment.ts +++ b/app/providers/AttachmentProvider/usePrepareAttachment.ts @@ -101,6 +101,12 @@ export function usePrepareAttachment() { try{ for(let i = 0; i < attachments.length; i++){ const attachment : Attachment = attachments[i]; + if(attachment.type == AttachmentType.CALL){ + /** + * Звонок загружать не надо + */ + continue; + } if(attachment.type == AttachmentType.MESSAGES){ let reply : MessageReply[] = JSON.parse(attachment.blob) for(let j = 0; j < reply.length; j++){ diff --git a/app/providers/CallProvider/CallProvider.tsx b/app/providers/CallProvider/CallProvider.tsx index c0afb4c..bf1d342 100644 --- a/app/providers/CallProvider/CallProvider.tsx +++ b/app/providers/CallProvider/CallProvider.tsx @@ -373,7 +373,7 @@ export function CallProvider(props : CallProviderProps) { send(offerSignal); return; } - }, [activeCall, sessionKeys]); + }, [activeCall, sessionKeys, duration]); const openCallsModal = (text : string) => { modals.open({