События звонков в сообщениях
This commit is contained in:
@@ -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++){
|
||||
|
||||
@@ -373,7 +373,7 @@ export function CallProvider(props : CallProviderProps) {
|
||||
send(offerSignal);
|
||||
return;
|
||||
}
|
||||
}, [activeCall, sessionKeys]);
|
||||
}, [activeCall, sessionKeys, duration]);
|
||||
|
||||
const openCallsModal = (text : string) => {
|
||||
modals.open({
|
||||
|
||||
Reference in New Issue
Block a user