@reactoo/watchtogether-sdk-js 2.5.44 → 2.5.45
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
package/src/models/room.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import roomSession from './room-session';
|
|
4
4
|
import streamingSession from "./streaming-session";
|
|
5
|
+
import {decodeJanusDisplay} from "../modules/wt-utils";
|
|
5
6
|
|
|
6
7
|
let room = function () {
|
|
7
8
|
|
|
@@ -302,7 +303,7 @@ let room = function () {
|
|
|
302
303
|
return roomSessions.find(session => session.roomId === roomId) || null
|
|
303
304
|
},
|
|
304
305
|
getSessionByUserId: (userId) => {
|
|
305
|
-
return roomSessions.find(session => session.userId === userId) || null
|
|
306
|
+
return roomSessions.find(session => decodeJanusDisplay(session.userId)?.userId === userId) || null
|
|
306
307
|
},
|
|
307
308
|
getSessionByStreamId: (streamId) => {
|
|
308
309
|
return roomSessions.find(session => session.streamId === streamId) || null
|