2023-10-09 01:41:13 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class PeerData;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class VerticalLayout;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2023-10-09 14:52:56 +00:00
|
|
|
namespace Data {
|
2023-10-11 02:10:09 +00:00
|
|
|
struct PublicForwardsSlice;
|
2023-10-09 14:52:56 +00:00
|
|
|
struct SupergroupStatistics;
|
|
|
|
} // namespace Data
|
|
|
|
|
2023-10-09 14:10:58 +00:00
|
|
|
namespace Info::Statistics {
|
2023-10-09 03:53:34 +00:00
|
|
|
|
2023-10-09 14:10:58 +00:00
|
|
|
void AddPublicForwards(
|
2023-10-11 02:10:09 +00:00
|
|
|
const Data::PublicForwardsSlice &firstSlice,
|
2023-10-09 01:41:13 +00:00
|
|
|
not_null<Ui::VerticalLayout*> container,
|
|
|
|
Fn<void(FullMsgId)> showPeerHistory,
|
|
|
|
not_null<PeerData*> peer,
|
|
|
|
FullMsgId contextId);
|
|
|
|
|
2023-10-09 14:52:56 +00:00
|
|
|
void AddMembersList(
|
|
|
|
Data::SupergroupStatistics data,
|
|
|
|
not_null<Ui::VerticalLayout*> container,
|
|
|
|
Fn<void(not_null<PeerData*>)> showPeerInfo,
|
|
|
|
not_null<PeerData*> peer,
|
|
|
|
rpl::producer<QString> title);
|
|
|
|
|
2023-10-09 01:41:13 +00:00
|
|
|
} // namespace Info::Statistics
|