@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/CHANGELOG.md +7 -0
- package/dist/index.browser.es.js +4 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/StreamVideoClient.ts +2 -1
package/package.json
CHANGED
package/src/StreamVideoClient.ts
CHANGED
|
@@ -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 = [];
|