Skip to content

Commit

Permalink
Backport PR #11865: Backport PR #11852 on branch 3.3.x (Add percent d…
Browse files Browse the repository at this point in the history
…ecoding to username) (#11872)

Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and fcollonval committed Jan 15, 2022
1 parent 8041499 commit 77364e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docprovider/src/yprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export class WebSocketProviderWithLocks
this._contentType = options.contentType;
this._serverUrl = options.url;
const color = '#' + env.getParam('--usercolor', getRandomColor().slice(1));
const name = env.getParam('--username', getAnonymousUserName());
const name = decodeURIComponent(
env.getParam('--username', getAnonymousUserName())
);
const awareness = options.ymodel.awareness;
const currState = awareness.getLocalState();
// only set if this was not already set by another plugin
Expand Down

0 comments on commit 77364e3

Please sign in to comment.