diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-01-06 18:04:24 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-01-06 18:04:24 -0500 |
commit | 0e7a149982f73919badd9d366d06fa699925c89f (patch) | |
tree | b8609b4ce5a962a3db80a790d4dcb1f48bf717c3 /model/client.go | |
parent | 5855b5e4590889944e4a408f7185f84779fc701a (diff) | |
download | chat-0e7a149982f73919badd9d366d06fa699925c89f.tar.gz chat-0e7a149982f73919badd9d366d06fa699925c89f.tar.bz2 chat-0e7a149982f73919badd9d366d06fa699925c89f.zip |
Added the ability to get more channel members from getChannelExtraInfo
Diffstat (limited to 'model/client.go')
-rw-r--r-- | model/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/client.go b/model/client.go index f1773f3c7..14746f8ae 100644 --- a/model/client.go +++ b/model/client.go @@ -591,8 +591,8 @@ func (c *Client) UpdateLastViewedAt(channelId string) (*Result, *AppError) { } } -func (c *Client) GetChannelExtraInfo(id string, etag string) (*Result, *AppError) { - if r, err := c.DoApiGet("/channels/"+id+"/extra_info", "", etag); err != nil { +func (c *Client) GetChannelExtraInfo(id string, memberLimit int, etag string) (*Result, *AppError) { + if r, err := c.DoApiGet("/channels/"+id+"/extra_info/"+strconv.FormatInt(int64(memberLimit), 10), "", etag); err != nil { return nil, err } else { return &Result{r.Header.Get(HEADER_REQUEST_ID), |