@reactoo/watchtogether-sdk-js 2.5.3 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -95,7 +95,14 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
|
|
|
95
95
|
.then(([roomData, userData]) => Promise.all([roomData, userData, this.setRoomVars()]))
|
|
96
96
|
.then(([roomData, userData, _]) => Promise.all([roomData, userData, room.connect(roomData.data.roomId, roomData.data.pin, roomData.data.href, roomData.data.iceServers, roomData.data.accessToken, (isMonitor || isInstructor || isTalkback) ? roomData.data.userId : userData.data._id, roomData.data.webrtcVersion, (roomData.data.bitrate ? parseInt(roomData.data.bitrate) : 0), isMonitor, roomData.data.recordingFilename)]))
|
|
97
97
|
.then(([roomData, userData, _]) => {
|
|
98
|
-
|
|
98
|
+
|
|
99
|
+
// Happens when we reroute user to a different room
|
|
100
|
+
|
|
101
|
+
if(roomData?.data?.reactooRoomId) {
|
|
102
|
+
roomId = roomData.data.reactooRoomId
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return roomData.data
|
|
99
106
|
})
|
|
100
107
|
.finally(() => {
|
|
101
108
|
emitter.emit('connecting', false);
|