2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 07:25:46 +00:00

Show informative empty posts search.

This commit is contained in:
John Preston
2025-08-05 16:22:02 +04:00
parent 86cffae001
commit 60f6ea3252
3 changed files with 14 additions and 1 deletions

View File

@@ -2020,6 +2020,10 @@ void Suggestions::setupPostsIntro(const PostsSearchIntroState &intro) {
}
}, _postsSearchIntro->lifetime());
_postsScroll->heightValue() | rpl::start_with_next([=](int height) {
_postsWrap->resize(_postsWrap->width(), height);
}, _postsSearchIntro->lifetime());
_postsSearchIntro->show();
updateControlsGeometry();
}