diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 49a552003..364653131 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -390,6 +390,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_no_chats_filter" = "No chats currently belong to this folder."; "lng_contacts_loading" = "Loading..."; "lng_contacts_not_found" = "No contacts found"; +"lng_topics_not_found" = "No topics found."; "lng_dlg_search_for_messages" = "Search for messages"; "lng_update_telegram" = "Update Telegram"; "lng_dlg_search_in" = "Search messages in"; diff --git a/Telegram/SourceFiles/boxes/peer_list_controllers.cpp b/Telegram/SourceFiles/boxes/peer_list_controllers.cpp index a5b8267da..8661b58d4 100644 --- a/Telegram/SourceFiles/boxes/peer_list_controllers.cpp +++ b/Telegram/SourceFiles/boxes/peer_list_controllers.cpp @@ -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 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);