@stream-io/video-client 0.0.1-alpha.79 → 0.0.1-alpha.80
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.browser.es.js
CHANGED
|
@@ -6611,10 +6611,10 @@ const watchBlockedUser = (store) => (event) => {
|
|
|
6611
6611
|
const state = activeCall.state;
|
|
6612
6612
|
const localParticipant = state.getCurrentValue(state.localParticipant$);
|
|
6613
6613
|
// FIXME: end call
|
|
6614
|
-
if ((localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.userId) === event.
|
|
6614
|
+
if ((localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.userId) === event.user.id) {
|
|
6615
6615
|
activeCall.leave();
|
|
6616
6616
|
}
|
|
6617
|
-
state.setCurrentValue(state.metadataSubject, (metadata) => (Object.assign(Object.assign({}, metadata), { blocked_user_ids: [...metadata.blocked_user_ids, event.
|
|
6617
|
+
state.setCurrentValue(state.metadataSubject, (metadata) => (Object.assign(Object.assign({}, metadata), { blocked_user_ids: [...metadata.blocked_user_ids, event.user.id] })));
|
|
6618
6618
|
};
|
|
6619
6619
|
/**
|
|
6620
6620
|
* Event handler that watches for `call.unblocked_user` events,
|
|
@@ -6629,7 +6629,7 @@ const watchUnblockedUser = (store) => (event) => {
|
|
|
6629
6629
|
}
|
|
6630
6630
|
const state = activeCall.state;
|
|
6631
6631
|
state.setCurrentValue(state.metadataSubject, (metadata) => {
|
|
6632
|
-
const blocked_user_ids = metadata.blocked_user_ids.filter((userId) => event.
|
|
6632
|
+
const blocked_user_ids = metadata.blocked_user_ids.filter((userId) => event.user.id !== userId);
|
|
6633
6633
|
return Object.assign(Object.assign({}, metadata), { blocked_user_ids });
|
|
6634
6634
|
});
|
|
6635
6635
|
};
|
|
@@ -8496,7 +8496,7 @@ class StreamClient {
|
|
|
8496
8496
|
}
|
|
8497
8497
|
getUserAgent() {
|
|
8498
8498
|
return (this.userAgent ||
|
|
8499
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.
|
|
8499
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.1-alpha.79"}`);
|
|
8500
8500
|
}
|
|
8501
8501
|
setUserAgent(userAgent) {
|
|
8502
8502
|
this.userAgent = userAgent;
|