From e4bfae4172ae8f1bab4d333c500e632d0338d528 Mon Sep 17 00:00:00 2001 From: David Sheldrick Date: Fri, 12 Jul 2024 15:01:34 +0100 Subject: [PATCH] [bemo] allow special chars in roomId (#4153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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… --- packages/sync/src/useMutliplayerDemo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sync/src/useMutliplayerDemo.ts b/packages/sync/src/useMutliplayerDemo.ts index c8ec4893c..dff6bb9e9 100644 --- a/packages/sync/src/useMutliplayerDemo.ts +++ b/packages/sync/src/useMutliplayerDemo.ts @@ -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,