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

Update API scheme to layer 148, start forums.

This commit is contained in:
John Preston
2022-09-20 13:35:47 +04:00
parent 87b228b256
commit c88140e256
25 changed files with 349 additions and 40 deletions

View File

@@ -94,6 +94,7 @@ public:
void clearSelection();
void changeOpenedFolder(Data::Folder *folder);
void changeOpenedForum(ChannelData *forum);
void selectSkip(int32 direction);
void selectSkipPage(int32 pixels, int32 direction);
@@ -109,6 +110,7 @@ public:
void scrollToEntry(const RowDescriptor &entry);
Data::Folder *shownFolder() const;
ChannelData *shownForum() const;
int32 lastSearchDate() const;
PeerData *lastSearchPeer() const;
MsgId lastSearchId() const;
@@ -179,6 +181,7 @@ private:
Loading,
NoContacts,
EmptyFolder,
EmptyForum,
};
Main::Session &session() const;
@@ -348,6 +351,7 @@ private:
Qt::MouseButton _pressButton = Qt::LeftButton;
Data::Folder *_openedFolder = nullptr;
ChannelData *_openedForum = nullptr;
std::vector<std::unique_ptr<CollapsedRow>> _collapsedRows;
int _collapsedSelected = -1;