mirror of
https://github.com/matrix-org/gomatrix
synced 2025-05-12 10:41:44 +00:00
Merge pull request #28 from Dhole/master
In /messages: Fix Messages argument parsing
This commit is contained in:
commit
cb69d2b689
1 changed files with 1 additions and 1 deletions
|
@ -644,7 +644,7 @@ func (cli *Client) Messages(roomID, from, to string, dir rune, limit int) (resp
|
|||
query["to"] = to
|
||||
}
|
||||
if limit != 0 {
|
||||
query["limit"] = string(limit)
|
||||
query["limit"] = strconv.Itoa(limit)
|
||||
}
|
||||
|
||||
urlPath := cli.BuildURLWithQuery([]string{"rooms", roomID, "messages"}, query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue