2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Collapse stories on chat open.

This commit is contained in:
John Preston
2023-06-27 13:36:25 +04:00
parent bc7da9309d
commit aa2cf2f6ca
5 changed files with 34 additions and 20 deletions

View File

@@ -104,7 +104,7 @@ public:
const QVector<MTPPeer> &my,
const QVector<MTPPeer> &result);
[[nodiscard]] rpl::producer<> scrollToVeryTopRequests() const;
[[nodiscard]] rpl::producer<bool> storiesExpandedRequests() const;
[[nodiscard]] int defaultScrollTop() const;
void setViewportHeight(int viewportHeight);
@@ -408,6 +408,7 @@ private:
const not_null<Window::SessionController*> _controller;
const std::unique_ptr<Stories::List> _stories;
rpl::event_stream<bool> _storiesExpandedRequests;
int _viewportHeight = 0;
not_null<IndexedList*> _shownList;