Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-08 22:58:16 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-03 15:10:33 +0300
commitcb2f6e2c18eee8263b3d939d776ea63a9f3504a8 (patch)
treecfa1b17f8c52deb50fb7b9da8e87a87ed2d54e47 /src/utils/signaling.js
parent2819892f317609a4a5fee86692e7ffa007a11730 (diff)
Add button to end meeting for all
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index 4db8c2a23..28b699c10 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -311,14 +311,18 @@ Signaling.Base.prototype.updateCallFlags = function(token, flags) {
})
}
-Signaling.Base.prototype.leaveCall = function(token, keepToken) {
+Signaling.Base.prototype.leaveCall = function(token, keepToken, all = false) {
return new Promise((resolve, reject) => {
if (!token) {
reject(new Error())
return
}
- axios.delete(generateOcsUrl('apps/spreed/api/v4/call/{token}', { token }))
+ axios.delete(generateOcsUrl('apps/spreed/api/v4/call/{token}', { token }), {
+ data: {
+ all,
+ },
+ })
.then(function() {
this._trigger('leaveCall', [token, keepToken])
this._leaveCallSuccess(token)