exclude file count on channel stats api call on from channel header (#22624)

Этот коммит содержится в:
Ashish Dhama
2023-03-29 10:48:32 +05:30
коммит произвёл GitHub
родитель 932790f99a
Коммит 529ab959e2
8 изменённых файлов: 90 добавлений и 24 удалений

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

@@ -1782,9 +1782,10 @@ export default class Client4 {
);
};
getChannelStats = (channelId: string) => {
getChannelStats = (channelId: string, excludeFilesCount = false) => {
const param = excludeFilesCount ? `?exclude_files_count=${excludeFilesCount}` : '';
return this.doFetch<ChannelStats>(
`${this.getChannelRoute(channelId)}/stats`,
`${this.getChannelRoute(channelId)}/stats${param}`,
{method: 'get'},
);
};