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:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-01-13 06:10:38 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-01-13 06:40:35 +0300
commita95bc9df42f943fb873da0abd4ff7b09550fb343 (patch)
treea455f4ae35ad1519e1c59a39d5971e7100c48688 /src/utils/signaling.js
parent236b9759c778b1fd14069f025f7064c08ee799fd (diff)
Remove left users from signaling list after a reconnection
The signaling object keeps a list of the known session IDS in the room which is updated when participants join or leave the room. However, the list was not updated when filtering the users that left in the meantime during a reconnection. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index 382c0d25f..9a6585bcf 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -1181,6 +1181,10 @@ Signaling.Standalone.prototype.processRoomEvent = function(data) {
leftUsers = Object.keys(leftUsers)
if (leftUsers.length) {
this._trigger('usersLeft', [leftUsers])
+
+ for (i = 0; i < leftUsers.length; i++) {
+ delete this.joinedUsers[leftUsers[i]]
+ }
}
this._trigger('usersJoined', [joinedUsers])
this._trigger('participantListChanged')