2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme to layer 119. Count replies.

This commit is contained in:
John Preston
2020-09-01 10:44:18 +04:00
parent fcdc4cd465
commit 55edb3bdfe
54 changed files with 973 additions and 583 deletions

View File

@@ -31,15 +31,15 @@ public:
void rowActionClicked(not_null<PeerListRow*> row) override;
void loadMoreRows() override;
static void BlockNewUser(not_null<Window::SessionController*> window);
static void BlockNewPeer(not_null<Window::SessionController*> window);
private:
void receivedUsers(const QVector<MTPContactBlocked> &result);
void handleBlockedEvent(not_null<UserData*> user);
void receivedPeers(const QVector<MTPPeerBlocked> &result);
void handleBlockedEvent(not_null<PeerData*> peer);
bool appendRow(not_null<UserData*> user);
bool prependRow(not_null<UserData*> user);
std::unique_ptr<PeerListRow> createRow(not_null<UserData*> user) const;
bool appendRow(not_null<PeerData*> peer);
bool prependRow(not_null<PeerData*> peer);
std::unique_ptr<PeerListRow> createRow(not_null<PeerData*> peer) const;
const not_null<Window::SessionController*> _window;
MTP::Sender _api;