mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 15:26:27 +00:00
Fix call system
This commit is contained in:
parent
b45d4eaadd
commit
11d400e110
@ -17,7 +17,7 @@ class CallWindow extends CustomEvents {
|
|||||||
|
|
||||||
// Initialize variables
|
// Initialize variables
|
||||||
this.conv = conv;
|
this.conv = conv;
|
||||||
this.callID = conv.ID;
|
this.callID = conv.id;
|
||||||
this.allowVideo = conv.can_have_video_call;
|
this.allowVideo = conv.can_have_video_call;
|
||||||
|
|
||||||
/** @type {Map<number, Peer>} */
|
/** @type {Map<number, Peer>} */
|
||||||
@ -373,7 +373,7 @@ class CallWindow extends CustomEvents {
|
|||||||
|
|
||||||
// Join the call
|
// Join the call
|
||||||
await ws("calls/join", {
|
await ws("calls/join", {
|
||||||
convID: this.conv.ID
|
convID: this.conv.id
|
||||||
})
|
})
|
||||||
|
|
||||||
// Get call configuration
|
// Get call configuration
|
||||||
@ -381,7 +381,7 @@ class CallWindow extends CustomEvents {
|
|||||||
|
|
||||||
// Get the list of members of the call
|
// Get the list of members of the call
|
||||||
const currMembersList = await ws("calls/members", {
|
const currMembersList = await ws("calls/members", {
|
||||||
callID: this.conv.ID
|
callID: this.conv.id
|
||||||
})
|
})
|
||||||
|
|
||||||
// Apply this list of user
|
// Apply this list of user
|
||||||
@ -521,7 +521,7 @@ class CallWindow extends CustomEvents {
|
|||||||
// Leave the call
|
// Leave the call
|
||||||
if(UserWebSocket.IsConnected)
|
if(UserWebSocket.IsConnected)
|
||||||
await ws("calls/leave", {
|
await ws("calls/leave", {
|
||||||
convID: this.conv.ID
|
convID: this.conv.id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user