mirror of
https://github.com/status-im/codimd.git
synced 2025-02-20 19:18:24 +00:00
Merge pull request #677 from hackmdio/realtime-minor-typos
Fix minor typos in realtime
This commit is contained in:
commit
5f84906b2e
@ -709,7 +709,7 @@ function connection (socket) {
|
|||||||
return failConnection(404, 'note id not found', socket)
|
return failConnection(404, 'note id not found', socket)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDuplicatedInSocketQueue(socket, connectionSocketQueue)) return
|
if (isDuplicatedInSocketQueue(connectionSocketQueue, socket)) return
|
||||||
|
|
||||||
// store noteId in this socket session
|
// store noteId in this socket session
|
||||||
socket.noteId = noteId
|
socket.noteId = noteId
|
||||||
@ -723,8 +723,8 @@ function connection (socket) {
|
|||||||
var maxrandomcount = 10
|
var maxrandomcount = 10
|
||||||
var found = false
|
var found = false
|
||||||
do {
|
do {
|
||||||
Object.keys(notes[noteId].users).forEach(function (user) {
|
Object.keys(notes[noteId].users).forEach(function (userId) {
|
||||||
if (user.color === color) {
|
if (notes[noteId].users[userId].color === color) {
|
||||||
found = true
|
found = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user