@reactoo/watchtogether-sdk-js 2.6.26 → 2.6.27

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.6.26",
3
+ "version": "2.6.27",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -2179,6 +2179,12 @@ class RoomSession {
2179
2179
  config.stream.onremovetrack = (ev) => {};
2180
2180
 
2181
2181
  let trackremoved = (ev) => {
2182
+
2183
+ config.streamMap[source] = config.streamMap[source].filter(id => id !== ev.detail.id);
2184
+ if(config.streamMap[source].length === 0) {
2185
+ delete config.streamMap[source];
2186
+ }
2187
+
2182
2188
  this.emit('addLocalParticipant', {
2183
2189
  tid: generateUUID(),
2184
2190
  id: handle.handleId,