@reactoo/watchtogether-sdk-js 2.8.37 → 2.8.39
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/live-barn.js
CHANGED
|
@@ -92,7 +92,7 @@ let liveBarn = function() {
|
|
|
92
92
|
operation: 'listTeams',
|
|
93
93
|
...(fulltextPhrase && {fulltextPhrase}),
|
|
94
94
|
...(sports?.length && {sports}),
|
|
95
|
-
...(idsChunk?.length && {ids: idsChunk
|
|
95
|
+
...(idsChunk?.length && {ids: idsChunk}),
|
|
96
96
|
...(size && !ids?.length && {size}),
|
|
97
97
|
...(startKey && {startKey}),
|
|
98
98
|
...(sort && {sort}),
|
|
@@ -3285,7 +3285,6 @@ class RoomSession {
|
|
|
3285
3285
|
const myUserRole = decodeJanusDisplay(this.display)?.role || 'participant';
|
|
3286
3286
|
const remoteUserRole = parsedDisplay?.role || 'participant';
|
|
3287
3287
|
const remoteUserId = parsedDisplay?.userId;
|
|
3288
|
-
console.log('pica', myUserRole, this.userRoleSubscriptionRules, this._roomType || 'watchparty');
|
|
3289
3288
|
const shouldSubscribeToUserRole = this.userRoleSubscriptionRules[myUserRole][(this._roomType || 'watchparty')].indexOf(remoteUserRole) > -1
|
|
3290
3289
|
const shouldSubscribeToUserId = this._restrictSubscribeToUserIds.length === 0 || this._restrictSubscribeToUserIds.indexOf(remoteUserId) > -1;
|
|
3291
3290
|
return shouldSubscribeToUserRole && shouldSubscribeToUserId;
|