mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-04 06:18:05 +00:00 
			
		
		
		
	Fix InviteUser (#49)
This commit is contained in:
		
							parent
							
								
									a7fc80c806
								
							
						
					
					
						commit
						072b39f7fa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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
 | 
					// 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) {
 | 
					func (cli *Client) InviteUser(roomID string, req *ReqInviteUser) (resp *RespInviteUser, err error) {
 | 
				
			||||||
	u := cli.BuildURL("rooms", roomID, "invite")
 | 
						u := cli.BuildURL("rooms", roomID, "invite")
 | 
				
			||||||
	_, err = cli.MakeRequest("POST", u, struct{}{}, &resp)
 | 
						_, err = cli.MakeRequest("POST", u, req, &resp)
 | 
				
			||||||
	return
 | 
						return
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue