Improve support of audio-only calls

This commit is contained in:
2020-04-13 12:11:38 +02:00
parent 088cbe77b9
commit a4f5228037
2 changed files with 11 additions and 1 deletions

View File

@ -48,6 +48,9 @@ class CallWindow extends CustomEvents {
class: "call-window"
})
if(!this.conv.can_have_video_call)
this.rootEl.classList.add("audio-only")
// Construct head
this.windowHead = createElem2({
@ -475,7 +478,7 @@ class CallWindow extends CustomEvents {
async toggleStream(isVideo) {
if(isVideo && !this.conv.can_have_video_call) {
notify("Video calls can not be perfomed on this conversations!", "danger")
notify("Video calls can not be done on this conversations!", "danger")
return;
}