Merge pull request #5 from bradjones1/bugfix/room-join-url

Fix room join API URL
This commit is contained in:
Brad Jones 2021-05-30 18:07:53 -10:00 committed by GitHub
commit ea38609e8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
/**