-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Audio zone fixes #4278
Audio zone fixes #4278
Conversation
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.
Spotted a typo that needs fixing. Other minor comments, but looks good otherwise.
src/components/player-info.js
Outdated
@@ -120,12 +120,16 @@ AFRAME.registerComponent("player-info", { | |||
this.updateDisplayNameFromPresenceMeta(e.detail); | |||
}, | |||
updateDisplayNameFromPresenceMeta(presenceMeta) { |
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.
Looks like the contents of this function has drifted from its behavior. Maybe updatePlayerInfoFromPresenceMeta
?
"pin_objects", | ||
"spawn_emoji", | ||
"fly" | ||
]); |
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.
Oh wow, nice catch 😅
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.
Yeah at first I was like "Wait, js has an array concatenation operator? And then I realized what was going on... Oh javascript. Funny that it just happened to work mostly correctly by chance.
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 good to see it's fixed, noticed that a year ago and I was just about to push a PR for that!
I wondered too at first if I was missing some obscure syntax XD
Co-authored-by: Brian Peiris <brianpeiris@gmail.com>
…to audio-zone-fixes
amplify_audio
permission added in Add amplify_audio permission reticulum#499 to enforcemodOnly
on zone audio sources. Previously this was using "owner" but this does not work well for bound rooms.includes
method which happened to also be correct for this case. Oh javascript.