Merge pull request #4 from Charsy89/master

Still send chat to user (FIX BUG)
This commit is contained in:
BopItFreak 2019-11-19 21:16:39 -05:00 committed by GitHub
commit 1be9676cfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.participantId = otheruser.participantId;
this.connections.push(cl);
cl.sendArray([{
m: "c",
c: this.chatmsgs.slice(-1 * 32)
}])
this.updateCh(cl);
}