We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b419f4 commit 68879d2Copy full SHA for 68879d2
1 file changed
lib/realtime.js
@@ -709,7 +709,7 @@ function connection (socket) {
709
return failConnection(404, 'note id not found', socket)
710
}
711
712
- if (isDuplicatedInSocketQueue(socket, connectionSocketQueue)) return
+ if (isDuplicatedInSocketQueue(connectionSocketQueue, socket)) return
713
714
// store noteId in this socket session
715
socket.noteId = noteId
@@ -723,8 +723,8 @@ function connection (socket) {
723
var maxrandomcount = 10
724
var found = false
725
do {
726
- Object.keys(notes[noteId].users).forEach(function (user) {
727
- if (user.color === color) {
+ Object.keys(notes[noteId].users).forEach(function (userId) {
+ if (notes[noteId].users[userId].color === color) {
728
found = true
729
730
})
0 commit comments