@stream-io/video-client 1.12.0 → 1.12.1
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 +7 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Call.ts +5 -1
package/dist/index.es.js
CHANGED
|
@@ -3300,7 +3300,7 @@ const retryable = async (rpc, signal) => {
|
|
|
3300
3300
|
return result;
|
|
3301
3301
|
};
|
|
3302
3302
|
|
|
3303
|
-
const version = "1.12.
|
|
3303
|
+
const version = "1.12.1";
|
|
3304
3304
|
const [major, minor, patch] = version.split('.');
|
|
3305
3305
|
let sdkInfo = {
|
|
3306
3306
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -10163,8 +10163,12 @@ class Call {
|
|
|
10163
10163
|
}
|
|
10164
10164
|
// update the call state with the latest event data
|
|
10165
10165
|
this.state.updateFromCallResponse(event.call);
|
|
10166
|
-
this.ringingSubject.next(true);
|
|
10167
10166
|
this.watching = true;
|
|
10167
|
+
this.ringingSubject.next(true);
|
|
10168
|
+
// we remove the instance from the calls list to enable the following filter in useCalls hook
|
|
10169
|
+
// const calls = useCalls().filter((c) => c.ringing);
|
|
10170
|
+
const calls = this.clientStore.calls.filter((c) => c.cid !== this.cid);
|
|
10171
|
+
this.clientStore.setCalls([this, ...calls]);
|
|
10168
10172
|
await this.applyDeviceConfig(false);
|
|
10169
10173
|
};
|
|
10170
10174
|
/**
|
|
@@ -12797,7 +12801,7 @@ class StreamClient {
|
|
|
12797
12801
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
12798
12802
|
};
|
|
12799
12803
|
this.getUserAgent = () => {
|
|
12800
|
-
const version = "1.12.
|
|
12804
|
+
const version = "1.12.1";
|
|
12801
12805
|
return (this.userAgent ||
|
|
12802
12806
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12803
12807
|
};
|