Skip to content

Commit

Permalink
Fixed kick user of the room API
Browse files Browse the repository at this point in the history
  • Loading branch information
stevandoMoodle committed Mar 7, 2023
1 parent e3af21e commit db8a309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/src/Controller/MatrixController.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public function kick(string $roomID, Request $request) : JsonResponse {
}

$payload = json_decode($request->getContent());
$check = $this->validateRequest((array)$payload, ['reason', 'user_id']);
$check = $this->validateRequest((array)$payload, ['user_id']);
if (!$check['status']) {
return $check['message'];
}
Expand Down

0 comments on commit db8a309

Please sign in to comment.