@stream-io/video-client 1.0.7 → 1.0.8

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.0.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.7...@stream-io/video-client-1.0.8) (2024-05-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * call.reject when there is no participant and call is in joined state ([#1366](https://github.com/GetStream/stream-video-js/issues/1366)) ([308d045](https://github.com/GetStream/stream-video-js/commit/308d0452303743922ca1e982bd271b42857d96b3))
11
+
5
12
  ### [1.0.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.0.6...@stream-io/video-client-1.0.7) (2024-05-21)
6
13
 
7
14
 
@@ -12313,7 +12313,9 @@ class Call {
12313
12313
  if (this.ringing) {
12314
12314
  // I'm the one who started the call, so I should cancel it.
12315
12315
  const hasOtherParticipants = this.state.remoteParticipants.length > 0;
12316
- if (this.isCreatedByMe && !hasOtherParticipants) {
12316
+ if (this.isCreatedByMe &&
12317
+ !hasOtherParticipants &&
12318
+ callingState === CallingState.RINGING) {
12317
12319
  // Signals other users that I have cancelled my call to them
12318
12320
  // before they accepted it.
12319
12321
  await this.reject();
@@ -15263,7 +15265,7 @@ class StreamClient {
15263
15265
  });
15264
15266
  };
15265
15267
  this.getUserAgent = () => {
15266
- const version = "1.0.7" ;
15268
+ const version = "1.0.8" ;
15267
15269
  return (this.userAgent ||
15268
15270
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15269
15271
  };