From 9b9fb348a0603ea1e6c9d2faf01298108c088824 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 28 Apr 2026 13:01:46 +0300 Subject: [PATCH] Fixed losing pasted text on cancel of send files box without caption. --- Telegram/SourceFiles/boxes/send_files_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 362e48efce..4e4c230d41 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -2256,7 +2256,7 @@ void SendFilesBox::requestToTakeTextWithTags() { return; } const auto text = _caption->getTextWithTags(); - if (!_prefilledCaptionText.text.isEmpty() && text.text.isEmpty()) { + if (text.text.isEmpty()) { return; } _textTaken = true;