Added ChannelExtra.MemberCount field to reflect the actual member count when we truncate the list of members to 20
Этот коммит содержится в:
@@ -677,6 +677,10 @@ func TestGetChannelExtraInfo(t *testing.T) {
|
||||
data := rget.Data.(*model.ChannelExtra)
|
||||
if data.Id != channel1.Id {
|
||||
t.Fatal("couldnt't get extra info")
|
||||
} else if len(data.Members) != 1 {
|
||||
t.Fatal("got incorrect members")
|
||||
} else if data.MemberCount != 1 {
|
||||
t.Fatal("got incorrect member count")
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Ссылка в новой задаче
Block a user