MM-54260: In Browse Channel Modal fix member count on private channels and when there is only 1 member in the channel (#24452)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
060a63a3ed
Коммит
71fb10ae7a
@@ -2312,6 +2312,10 @@ func (s SqlChannelStore) GetChannelsMemberCount(channelIDs []string) (_ map[stri
|
||||
defer rows.Close()
|
||||
|
||||
memberCounts := make(map[string]int64)
|
||||
// Initialize member counts for channels with zero members
|
||||
for _, channelID := range channelIDs {
|
||||
memberCounts[channelID] = 0
|
||||
}
|
||||
for rows.Next() {
|
||||
var channelID string
|
||||
var count int64
|
||||
|
||||
Ссылка в новой задаче
Block a user