From 715874a98f06c76a57e73abd9077d1ee0740eef0 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 14 Nov 2024 22:49:04 +0300 Subject: [PATCH] Slightly improved phrase for no results in forward box. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index b610c07a6..9d01be276 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -1999,6 +1999,10 @@ QPointer ShowForwardMessagesBox( }) { } + void setSearchNoResultsText(const QString &text) { + PeerListController::setSearchNoResultsText(text); + } + void rowClicked(not_null row) override final { const auto count = delegate()->peerListSelectedRowsCount(); if (showLockedError(row) || (count && row->peer()->isForum())) { @@ -2053,6 +2057,8 @@ QPointer ShowForwardMessagesBox( auto controller = std::make_unique(session); const auto controllerRaw = controller.get(); auto init = [=](not_null box) { + controllerRaw->setSearchNoResultsText( + tr::lng_bot_chats_not_found(tr::now)); box->setSpecialTabMode(true); auto applyFilter = [=](FilterId id) { box->scrollToY(0);