Merge pull request #4 from Charsy89/master
Still send chat to user (FIX BUG)
This commit is contained in:
commit
2183ccd956
|
@ -68,6 +68,10 @@ class Room extends EventEmitter {
|
|||
cl.user.id = otheruser.participantId;
|
||||
cl.participantId = otheruser.participantId;
|
||||
this.connections.push(cl);
|
||||
cl.sendArray([{
|
||||
m: "c",
|
||||
c: this.chatmsgs.slice(-1 * 32)
|
||||
}])
|
||||
this.updateCh(cl);
|
||||
}
|
||||
|
||||
|
@ -400,4 +404,4 @@ class Room extends EventEmitter {
|
|||
}
|
||||
|
||||
}
|
||||
module.exports = Room;
|
||||
module.exports = Room;
|
||||
|
|
Loading…
Reference in New Issue