Skip to content

Commit

Permalink
Fix user mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed Mar 6, 2024
1 parent 45576d5 commit a69556f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/edit/prose/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function handleAwarenessUpdates(wsProvider, daTitle, win) {
delta.removed.forEach((u) => users.delete(u));

const awarenessStates = wsProvider.awareness.getStates();
const userNames = users.values().map((u) => awarenessStates.get(u)?.user?.name || 'Anonymous');
const userNames = [...users].map((u) => awarenessStates.get(u)?.user?.name || 'Anonymous');
daTitle.collabUsers = [...userNames].sort();
});

Expand Down

0 comments on commit a69556f

Please sign in to comment.