2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Show loading placeholders in chats list.

This commit is contained in:
John Preston
2024-05-21 13:58:37 +04:00
parent e00c6ecfb8
commit 1865fd382c
5 changed files with 72 additions and 19 deletions

View File

@@ -448,7 +448,7 @@ Widget::Widget(
_inner->setLoadMoreCallback([=] {
const auto state = _inner->state();
if (state == WidgetState::Filtered
&& (!_inner->waitingForSearch()
&& (!_searchFull
|| (_searchInMigrated
&& _searchFull
&& !_searchFullMigrated))) {
@@ -1936,7 +1936,7 @@ void Widget::submit() {
const auto state = _inner->state();
if (state == WidgetState::Default
|| (state == WidgetState::Filtered
&& (!_inner->waitingForSearch() || _inner->hasFilteredResults()))) {
&& _inner->hasFilteredResults())) {
_inner->selectSkip(1);
_inner->chooseRow();
} else {