Skip to content

Commit

Permalink
Fix signaling client configuration's access to rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
doumdi committed Jan 16, 2024
1 parent b5d94a2 commit 903d87f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default {
// Here we access private member of the class. It's bad.
// Instead we should create a state of those configuration in our StreamClientStore and in the SignalingClientStore.
const signalingServerConfiguration = this.$store.state.localClient
.openteraVideoConf.client._signalingServerConfiguration;
.openteraVideoConf.client._signalingClient._signalingServerConfiguration;
const streamConfiguration = initStreamConfiguration(
this.$store.state.localClient.openteraVideoConf.localStream
);
Expand Down
8 changes: 4 additions & 4 deletions teleop-vue/src/store/modules/opentera/signalingClientStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export abstract class SignalingClientStore {
isInitPending: false,
beforeunloadEventHandler: ()=>null,
logger: (...args) => {
if(process.env.NODE_ENV !== "production")
{
//if(process.env.NODE_ENV !== "production")
//{
// eslint-disable-next-line no-console
console.log(...args)
}
//}
},
client: undefined,
clientsInRoom: [],
Expand Down Expand Up @@ -253,7 +253,7 @@ export abstract class SignalingClientStore {
if (clients.length >= 2) {
context.dispatch(
"callRoom",
context.state.client._signalingServerConfiguration.room
context.state.client._signalingClient._signalingServerConfiguration.room
);
}
}
Expand Down

0 comments on commit 903d87f

Please sign in to comment.