From bab4953a95ad8a99dfdce1deac355d89f979dfe4 Mon Sep 17 00:00:00 2001 From: Brad Jones Date: Sun, 30 May 2021 18:06:33 -1000 Subject: [PATCH] Fix room join API URL --- src/MatrixHttpApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MatrixHttpApi.php b/src/MatrixHttpApi.php index d782164..d5af85e 100644 --- a/src/MatrixHttpApi.php +++ b/src/MatrixHttpApi.php @@ -652,7 +652,7 @@ class MatrixHttpApi { public function inviteUser(string $roomId, string $userId) { $body = ['user_id' => $userId]; - return $this->send('POST', sprintf('.rooms/%s/invite', urlencode($roomId)), $body); + return $this->send('POST', sprintf('/rooms/%s/invite', urlencode($roomId)), $body); } /**