@stream-io/video-client 1.5.0 → 1.5.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/dist/index.es.js CHANGED
@@ -6536,7 +6536,7 @@ function getIceCandidate(candidate) {
6536
6536
  }
6537
6537
  }
6538
6538
 
6539
- const version = "1.5.0" ;
6539
+ const version = "1.5.1" ;
6540
6540
  const [major, minor, patch] = version.split('.');
6541
6541
  let sdkInfo = {
6542
6542
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -13932,12 +13932,12 @@ class Call {
13932
13932
  return;
13933
13933
  const callSession = this.state.session;
13934
13934
  const receiver_id = this.clientStore.connectedUser?.id;
13935
- const endedAt = this.state.endedAt;
13935
+ const ended_at = callSession?.ended_at;
13936
13936
  const created_by_id = this.state.createdBy?.id;
13937
13937
  const rejected_by = callSession?.rejected_by;
13938
13938
  const accepted_by = callSession?.accepted_by;
13939
13939
  let leaveCallIdle = false;
13940
- if (endedAt) {
13940
+ if (ended_at) {
13941
13941
  // call was ended before it was accepted or rejected so we should leave it to idle
13942
13942
  leaveCallIdle = true;
13943
13943
  }
@@ -13965,10 +13965,10 @@ class Call {
13965
13965
  }
13966
13966
  }
13967
13967
  else {
13968
- this.scheduleAutoDrop();
13969
13968
  if (this.state.callingState === CallingState.IDLE) {
13970
13969
  this.state.setCallingState(CallingState.RINGING);
13971
13970
  }
13971
+ this.scheduleAutoDrop();
13972
13972
  this.leaveCallHooks.add(registerRingingCallEventHandlers(this));
13973
13973
  }
13974
13974
  }));
@@ -15571,7 +15571,7 @@ class StreamClient {
15571
15571
  });
15572
15572
  };
15573
15573
  this.getUserAgent = () => {
15574
- const version = "1.5.0" ;
15574
+ const version = "1.5.1" ;
15575
15575
  return (this.userAgent ||
15576
15576
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15577
15577
  };