@stream-io/video-client 0.7.6 → 0.7.7
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 +5 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Call.ts +4 -2
package/dist/index.cjs.js
CHANGED
|
@@ -12658,12 +12658,14 @@ class Call {
|
|
|
12658
12658
|
if (rating < 1 || rating > 5) {
|
|
12659
12659
|
throw new Error('Rating must be between 1 and 5');
|
|
12660
12660
|
}
|
|
12661
|
-
const userSessionId = this.sfuClient?.sessionId;
|
|
12662
12661
|
const callSessionId = this.state.session?.id;
|
|
12663
|
-
if (!callSessionId
|
|
12662
|
+
if (!callSessionId) {
|
|
12664
12663
|
throw new Error('Feedback can be submitted only in the context of a call session');
|
|
12665
12664
|
}
|
|
12666
12665
|
const { sdkName, sdkVersion, ...platform } = getSdkSignature(getClientDetails());
|
|
12666
|
+
// user sessionId is not available once the call has been left
|
|
12667
|
+
// until we relax the backend validation, we'll send N/A
|
|
12668
|
+
const userSessionId = this.sfuClient?.sessionId ?? 'N/A';
|
|
12667
12669
|
const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
|
|
12668
12670
|
return this.streamClient.post(endpoint, {
|
|
12669
12671
|
rating,
|
|
@@ -14499,7 +14501,7 @@ class StreamClient {
|
|
|
14499
14501
|
});
|
|
14500
14502
|
};
|
|
14501
14503
|
this.getUserAgent = () => {
|
|
14502
|
-
const version = "0.7.
|
|
14504
|
+
const version = "0.7.7" ;
|
|
14503
14505
|
return (this.userAgent ||
|
|
14504
14506
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14505
14507
|
};
|