hedgeagent/1.12.0 #1
@@ -384,6 +384,9 @@ function finishConnection (socket, noteId, socketId) {
|
||||
}
|
||||
const note = notes[noteId]
|
||||
const user = users[socketId]
|
||||
if (!user) {
|
||||
return failConnection(500, 'user not found', socket)
|
||||
}
|
||||
// update user color to author color
|
||||
if (note.authors[user.userid]) {
|
||||
user.color = users[socket.id].color = note.authors[user.userid].color
|
||||
|
||||
Reference in New Issue
Block a user