From be43522117e637271509cf24244f554a437c0578 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 12 Nov 2015 11:25:46 -0500 Subject: Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20 --- model/channel_extra.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'model') 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 { -- cgit v1.2.3-1-g7c22