Still send chat to user

This commit is contained in:
Chars chan 2019-11-18 21:17:33 -07:00 committed by GitHub
parent d2d43007fc
commit f8b860e2ca
1 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,10 @@ class Room extends EventEmitter {
cl.user.id = otheruser.participantId; cl.user.id = otheruser.participantId;
cl.participantId = otheruser.participantId; cl.participantId = otheruser.participantId;
this.connections.push(cl); this.connections.push(cl);
cl.sendArray([{
m: "c",
c: this.chatmsgs.slice(-1 * 32)
}])
this.updateCh(cl); this.updateCh(cl);
} }