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:
authorJoas Schilling <coding@schilljs.com>2022-03-22 18:29:58 +0300
committerJoas Schilling <coding@schilljs.com>2022-05-17 13:16:03 +0300
commitae42b301bc2e7342813011f286df16096ce3675f (patch)
treefbc30e4d05d2065ca9b429d1256b54e60341a4f1 /src/utils/signaling.js
parent03b26ba740f0eaacbee54592db3cd3402b4e4b24 (diff)
Handle "event.participants.update.all" in the web
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index c0d1fbb52..85d37ca3c 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -1280,7 +1280,17 @@ Signaling.Standalone.prototype.processRoomListEvent = function(data) {
Signaling.Standalone.prototype.processRoomParticipantsEvent = function(data) {
switch (data.event.type) {
case 'update':
- this._trigger('usersChanged', [data.event.update.users || []])
+ if (data.event.update.all) {
+ // With `"all": true`
+ if (data.event.update.incall === 0) {
+ this._trigger('allUsersChangedInCallToDisconnected')
+ } else {
+ console.error('Unknown room participant event', data)
+ }
+ } else {
+ // With updated user list
+ this._trigger('usersChanged', [data.event.update.users || []])
+ }
this._trigger('participantListChanged')
break
case 'flags':