@stream-io/video-client 1.6.2 → 1.6.3

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": "@stream-io/video-client",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "packageManager": "yarn@3.2.4",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -320,6 +320,7 @@ export class StreamVideoClient {
320
320
  return;
321
321
  }
322
322
  const userId = this.streamClient.user?.id;
323
+ const apiKey = this.streamClient.key;
323
324
  const disconnectUser = () => this.streamClient.disconnectUser(timeout);
324
325
  this.disconnectionPromise = this.connectionPromise
325
326
  ? this.connectionPromise.then(() => disconnectUser())
@@ -329,7 +330,7 @@ export class StreamVideoClient {
329
330
  );
330
331
  await this.disconnectionPromise;
331
332
  if (userId) {
332
- StreamVideoClient._instanceMap.delete(userId);
333
+ StreamVideoClient._instanceMap.delete(apiKey + userId);
333
334
  }
334
335
  this.eventHandlersToUnregister.forEach((unregister) => unregister());
335
336
  this.eventHandlersToUnregister = [];