@reactoo/watchtogether-sdk-js 2.5.37 → 2.5.38

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.37",
3
+ "version": "2.5.38",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -245,7 +245,7 @@ class RoomSession {
245
245
  } else if(remoteUserId === allowedInstructor) {
246
246
  remoteUserRole = 'instructor';
247
247
  }
248
- return this.subscriptionRules[localUserRole][this._roomType].indexOf(remoteUserRole) > -1;
248
+ return this.subscriptionRules[localUserRole][(this._roomType || 'watchparty')].indexOf(remoteUserRole) > -1;
249
249
  }
250
250
 
251
251
  _getAddParticipantEventName(handleId) {