From 3854cfa63362f97a18cbcf8c7ba3d0316608c511 Mon Sep 17 00:00:00 2001 From: Donomii Date: Sat, 8 Jul 2017 15:59:56 +0000 Subject: [PATCH] Send real request data instead of empty request Call was incorrectly passing a freshly initialised, empty request rather than the request data that the caller provided --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 8ff3247..b07ee20 100644 --- a/client.go +++ b/client.go @@ -515,7 +515,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 }