-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Introduces connection event for custom properties. #2493
Conversation
Used for shard and region values coming from the backend.
|
||
if (region || shard) { | ||
// avoids sending empty values | ||
this.eventEmitter.emit(JitsiConnectionEvents.PROPERTIES_UPDATED, JSON.parse(JSON.stringify({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: use lodash clone or structuredClone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will drop the keys with undefined values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Do you want to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. That was a quick hack to avoid if this and if that to not add the keys.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah then go ahead!
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
* feat: Introduces connection event for custom properties. Used for shard and region values coming from the backend. * squash: Update JitsiConnectionEvents.ts * squash: Update JitsiConnectionEvents.ts
Used for shard and region values coming from the backend.