Channel.GetChannelCounts to sync by default (#11210)

Этот коммит содержится в:
Rodrigo Villablanca Vásquez
2019-06-17 10:47:34 -04:00
коммит произвёл Jesús Espino
родитель 5a3fed4534
Коммит 27a88b7868
5 изменённых файлов: 30 добавлений и 29 удалений

Просмотреть файл

@@ -1355,11 +1355,7 @@ func (a *App) GetChannelMemberCount(channelId string) (int64, *model.AppError) {
}
func (a *App) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError) {
result := <-a.Srv.Store.Channel().GetChannelCounts(teamId, userId)
if result.Err != nil {
return nil, result.Err
}
return result.Data.(*model.ChannelCounts), nil
return a.Srv.Store.Channel().GetChannelCounts(teamId, userId)
}
func (a *App) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError) {