feat: use userId instead of socketId

This commit is contained in:
Arnošt Pleskot
2023-07-12 16:56:21 +02:00
parent 62df03d78d
commit 2bdf09153c
5 changed files with 47 additions and 31 deletions

View File

@@ -619,8 +619,8 @@ export const _renderScene = ({
if (renderConfig.remoteSelectedElementIds[element.id]) {
selectionColors.push(
...renderConfig.remoteSelectedElementIds[element.id].map(
(socketId) => {
const background = getClientColor(socketId);
(userId) => {
const background = getClientColor(userId);
return background;
},
),