События звонков в сообщениях

This commit is contained in:
RoyceDa
2026-03-21 21:28:20 +02:00
parent e019702dbe
commit 91b955d621
2 changed files with 7 additions and 1 deletions

View File

@@ -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++){

View File

@@ -373,7 +373,7 @@ export function CallProvider(props : CallProviderProps) {
send(offerSignal);
return;
}
}, [activeCall, sessionKeys]);
}, [activeCall, sessionKeys, duration]);
const openCallsModal = (text : string) => {
modals.open({