mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-05-16 23:26:04 +00:00
Fix empty stories list hiding.
This commit is contained in:
parent
06469270d0
commit
dfd1aa5cd6
@ -852,6 +852,10 @@ void Widget::setupStories() {
|
||||
0);
|
||||
}
|
||||
}, lifetime());
|
||||
|
||||
_stories->emptyValue() | rpl::skip(1) | rpl::start_with_next([=] {
|
||||
updateStoriesVisibility();
|
||||
}, lifetime());
|
||||
}
|
||||
|
||||
void Widget::storiesToggleExplicitExpand(bool expand) {
|
||||
@ -1363,7 +1367,8 @@ void Widget::updateStoriesVisibility() {
|
||||
|| !_widthAnimationCache.isNull()
|
||||
|| _childList
|
||||
|| !_filter->getLastText().isEmpty()
|
||||
|| _searchInChat;
|
||||
|| _searchInChat
|
||||
|| _stories->empty();
|
||||
if (_stories->isHidden() != hidden) {
|
||||
_stories->setVisible(!hidden);
|
||||
using Type = Ui::ElasticScroll::OverscrollType;
|
||||
|
Loading…
Reference in New Issue
Block a user