Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Алексей Волегов committed Sep 27, 2022
1 parent 6c5bc5c commit 795b086
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CHANGELOG

## [v0.0.1] - 2022-09-20
## [v0.1.1] - 2022-09-20

- Add semver version `v0.0.1` (see semver.org)
- Add semver version `v0.1.1` (see semver.org)
- Add `NewWithOptions(url string, opts ...Option)` for custom client settings
- Rollback `go.mod` package name to `github.com/badkaktus/gorocket`
5 changes: 3 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"strconv"
"time"
)

Expand Down Expand Up @@ -247,10 +248,10 @@ func (c *Client) GetPinnedMessages(param *GetPinnedMsgRequest) (*GetPinnedMsgRes
url.Add("roomId", param.RoomId)
}
if param.Offset != 0 {
url.Add("offset", fmt.Sprintf("%d", param.Offset))
url.Add("offset", strconv.Itoa(param.Offset))
}
if param.Count != 0 {
url.Add("count", fmt.Sprintf("%d", param.Count))
url.Add("count", strconv.Itoa(param.Count))
}
req.URL.RawQuery = url.Encode()

Expand Down

0 comments on commit 795b086

Please sign in to comment.