[bemo] allow special chars in roomId (#4153)

if people did weird room ids with non-url-safe chars like
`blah/whatever` it wouldn't work. this fixes that

### Change type

- [ ] `bugfix`
- [x] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`

### Test plan

1. Create a shape...
2.

- [ ] Unit tests
- [ ] End to end tests

### Release notes

- Fixed a bug with…
This commit is contained in:
David Sheldrick 2024-07-12 15:01:34 +01:00 committed by GitHub
parent 85f36639ff
commit e4bfae4172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ export function useMultiplayerDemo({
const assets = useMemo(() => createDemoAssetStore(host), [host])
return useMultiplayerSync({
uri: `${host}/connect/${roomId}`,
uri: `${host}/connect/${encodeURIComponent(roomId)}`,
roomId,
userPreferences,
assets,