Skip to content

Commit

Permalink
Quick patch fixing #37. Where the user list had resourceId's in it
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymast committed Apr 20, 2020
1 parent c397134 commit 34b75be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function onMessage(ConnectionInterface $from, $msg): void
case 'userlist':
$list = [];
foreach ($this->users as $resourceId => $value) {
$list[$resourceId] = $value['user'];
$list[] = $value['user'];
}
$new_package = [
'users' => $list,
Expand Down

0 comments on commit 34b75be

Please sign in to comment.