diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-12 11:25:46 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-12 11:25:46 -0500 |
commit | be43522117e637271509cf24244f554a437c0578 (patch) | |
tree | 53b3d49a095efa96fa80592fdc2a5f5257b78058 /model/channel_extra.go | |
parent | 13a251a5ee940383e5a026284275b1f31fb476df (diff) | |
download | chat-be43522117e637271509cf24244f554a437c0578.tar.gz chat-be43522117e637271509cf24244f554a437c0578.tar.bz2 chat-be43522117e637271509cf24244f554a437c0578.zip |
Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20
Diffstat (limited to 'model/channel_extra.go')
-rw-r--r-- | model/channel_extra.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model/channel_extra.go b/model/channel_extra.go index c6f0ca192..55da588af 100644 --- a/model/channel_extra.go +++ b/model/channel_extra.go @@ -23,8 +23,9 @@ func (o *ExtraMember) Sanitize(options map[string]bool) { } type ChannelExtra struct { - Id string `json:"id"` - Members []ExtraMember `json:"members"` + Id string `json:"id"` + Members []ExtraMember `json:"members"` + MemberCount int64 `json:"member_count"` } func (o *ChannelExtra) ToJson() string { |