События звонков в сообщениях
This commit is contained in:
@@ -101,6 +101,12 @@ export function usePrepareAttachment() {
|
|||||||
try{
|
try{
|
||||||
for(let i = 0; i < attachments.length; i++){
|
for(let i = 0; i < attachments.length; i++){
|
||||||
const attachment : Attachment = attachments[i];
|
const attachment : Attachment = attachments[i];
|
||||||
|
if(attachment.type == AttachmentType.CALL){
|
||||||
|
/**
|
||||||
|
* Звонок загружать не надо
|
||||||
|
*/
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(attachment.type == AttachmentType.MESSAGES){
|
if(attachment.type == AttachmentType.MESSAGES){
|
||||||
let reply : MessageReply[] = JSON.parse(attachment.blob)
|
let reply : MessageReply[] = JSON.parse(attachment.blob)
|
||||||
for(let j = 0; j < reply.length; j++){
|
for(let j = 0; j < reply.length; j++){
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ export function CallProvider(props : CallProviderProps) {
|
|||||||
send(offerSignal);
|
send(offerSignal);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}, [activeCall, sessionKeys]);
|
}, [activeCall, sessionKeys, duration]);
|
||||||
|
|
||||||
const openCallsModal = (text : string) => {
|
const openCallsModal = (text : string) => {
|
||||||
modals.open({
|
modals.open({
|
||||||
|
|||||||
Reference in New Issue
Block a user