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({