@reactoo/watchtogether-sdk-js 2.8.41 → 2.8.43

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.8.41",
3
+ "version": "2.8.43",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -663,7 +663,11 @@ class RoomSession {
663
663
 
664
664
 
665
665
  // added sanity check
666
- await this.#availablePublishersSanityCheck();
666
+ try {
667
+ await this.#availablePublishersSanityCheck();
668
+ }
669
+ catch (e) {}
670
+
667
671
 
668
672
  // no subscription yet, we create one and subscribe to relevant participants
669
673
 
@@ -1406,7 +1410,6 @@ class RoomSession {
1406
1410
  .catch((e) => {
1407
1411
  this._log(e);
1408
1412
  });
1409
-
1410
1413
  this.#emitRemoteFeedUpdate(null, {feedRemoval: true, attendee: {id:leaving}});
1411
1414
  this.#removeAttendeeFromCache(leaving);
1412
1415
  }
@@ -1426,13 +1429,16 @@ class RoomSession {
1426
1429
 
1427
1430
  if(kicked === 'ok') {
1428
1431
  // this case shouldn't exist
1429
- } else if(kicked) {
1432
+ }
1433
+ else if(kicked) {
1430
1434
  this._log('kicked', kicked);
1431
1435
  this.#updateAvailablePublishersTrackData([], kicked);
1432
1436
  this.#updateSubscriptions()
1433
1437
  .catch((e) => {
1434
1438
  this._log(e);
1435
1439
  });
1440
+ this.#emitRemoteFeedUpdate(null, {feedRemoval: true, attendee: {id:leaving}});
1441
+ this.#removeAttendeeFromCache(leaving);
1436
1442
  }
1437
1443
 
1438
1444
  if(joining) {