This commit is contained in:
Chars chan 2020-05-28 11:57:54 -06:00 committed by GitHub
parent afb0e210cb
commit 16b411c641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Room extends EventEmitter {
updateParticipant(pid, options) { updateParticipant(pid, options) {
let p = null; let p = null;
Array.from(this.ppl).map(rpg => { Array.from(this.ppl).map(rpg => {
if(e[1].user._id == pid) p = e[1]; if(rpg[1].user._id == pid) p = rpg[1];
}); });
if (p == null) return; if (p == null) return;
options.name ? p.user.name = options.name : {}; options.name ? p.user.name = options.name : {};