From 072b39f7fa6b40257b4eead8c958d71985c28bdd Mon Sep 17 00:00:00 2001 From: 26000 Date: Wed, 9 May 2018 08:42:41 +0000 Subject: [PATCH] Fix InviteUser (#49) --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 90a07c6..7725ac3 100644 --- a/client.go +++ b/client.go @@ -529,7 +529,7 @@ func (cli *Client) ForgetRoom(roomID string) (resp *RespForgetRoom, err error) { // InviteUser invites a user to a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-invite func (cli *Client) InviteUser(roomID string, req *ReqInviteUser) (resp *RespInviteUser, err error) { u := cli.BuildURL("rooms", roomID, "invite") - _, err = cli.MakeRequest("POST", u, struct{}{}, &resp) + _, err = cli.MakeRequest("POST", u, req, &resp) return }