mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: mixing clientId & socketId in UserList (#7461)
This commit is contained in:
parent
0808532b49
commit
57ea4e61d1
8 changed files with 46 additions and 39 deletions
|
@ -12,6 +12,7 @@ export const actionGoToCollaborator = register({
|
|||
trackEvent: { category: "collab" },
|
||||
perform: (_elements, appState, collaborator: Collaborator) => {
|
||||
if (
|
||||
!collaborator.socketId ||
|
||||
appState.userToFollow?.socketId === collaborator.socketId ||
|
||||
collaborator.isCurrentUser
|
||||
) {
|
||||
|
@ -28,7 +29,7 @@ export const actionGoToCollaborator = register({
|
|||
appState: {
|
||||
...appState,
|
||||
userToFollow: {
|
||||
socketId: collaborator.socketId!,
|
||||
socketId: collaborator.socketId,
|
||||
username: collaborator.username || "",
|
||||
},
|
||||
// Close mobile menu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue