@stream-io/video-client 1.9.1 → 1.9.2
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 -4
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Call.ts +2 -2
- package/src/events/__tests__/call.test.ts +30 -0
package/dist/index.cjs.js
CHANGED
|
@@ -2959,7 +2959,7 @@ const retryable = async (rpc, signal) => {
|
|
|
2959
2959
|
return result;
|
|
2960
2960
|
};
|
|
2961
2961
|
|
|
2962
|
-
const version = "1.9.
|
|
2962
|
+
const version = "1.9.2";
|
|
2963
2963
|
const [major, minor, patch] = version.split('.');
|
|
2964
2964
|
let sdkInfo = {
|
|
2965
2965
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -9429,7 +9429,7 @@ class Call {
|
|
|
9429
9429
|
};
|
|
9430
9430
|
await waitUntilCallJoined();
|
|
9431
9431
|
}
|
|
9432
|
-
if (this.ringing) {
|
|
9432
|
+
if (reject && this.ringing) {
|
|
9433
9433
|
// I'm the one who started the call, so I should cancel it.
|
|
9434
9434
|
const hasOtherParticipants = this.state.remoteParticipants.length > 0;
|
|
9435
9435
|
if (this.isCreatedByMe &&
|
|
@@ -9439,7 +9439,7 @@ class Call {
|
|
|
9439
9439
|
// before they accepted it.
|
|
9440
9440
|
await this.reject();
|
|
9441
9441
|
}
|
|
9442
|
-
else if (
|
|
9442
|
+
else if (callingState === exports.CallingState.RINGING) {
|
|
9443
9443
|
// Signals other users that I have rejected the incoming call.
|
|
9444
9444
|
await this.reject();
|
|
9445
9445
|
}
|
|
@@ -12469,7 +12469,7 @@ class StreamClient {
|
|
|
12469
12469
|
});
|
|
12470
12470
|
};
|
|
12471
12471
|
this.getUserAgent = () => {
|
|
12472
|
-
const version = "1.9.
|
|
12472
|
+
const version = "1.9.2";
|
|
12473
12473
|
return (this.userAgent ||
|
|
12474
12474
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12475
12475
|
};
|