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

Fixed display of empty result of topics search.

This commit is contained in:
23rd
2023-01-20 12:08:37 +03:00
committed by John Preston
parent 465a33f095
commit 23a1f7b83c
2 changed files with 4 additions and 4 deletions

View File

@@ -590,11 +590,10 @@ void ChooseTopicSearchController::searchOnServer() {
}
delegate()->peerListSearchAddRow(topic->rootId().bare);
});
if (_offsetTopicId != savedTopicId) {
delegate()->peerListSearchRefreshRows();
} else {
if (_offsetTopicId == savedTopicId) {
_allLoaded = true;
}
delegate()->peerListSearchRefreshRows();
}).fail([=] {
_allLoaded = true;
}).send();
@@ -699,7 +698,7 @@ void ChooseTopicBoxController::rowClicked(not_null<PeerListRow*> row) {
void ChooseTopicBoxController::prepare() {
delegate()->peerListSetTitle(tr::lng_forward_choose());
setSearchNoResultsText(tr::lng_blocked_list_not_found(tr::now));
setSearchNoResultsText(tr::lng_topics_not_found(tr::now));
delegate()->peerListSetSearchMode(PeerListSearchMode::Enabled);
refreshRows(true);