mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Notify calls in sidebar
This commit is contained in:
@ -576,6 +576,25 @@ const SidebarMain = {
|
||||
innerHTML: timeDiffToStr(conv.last_active)
|
||||
});
|
||||
|
||||
|
||||
// Check if there is an ongoing call on the conversation
|
||||
if(conv.has_call_now) {
|
||||
|
||||
li.classList.add("with-call");
|
||||
|
||||
let callLi = createElem2({
|
||||
appendTo: target,
|
||||
type: "li",
|
||||
class: "call_notice"
|
||||
});
|
||||
|
||||
let a = createElem2({
|
||||
appendTo: callLi,
|
||||
type: "a",
|
||||
onclick: () => CallsController.Open(conv),
|
||||
innerHTML: "<i class='fa fa-phone'></i> <span>Ongoing call</span>"
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user