Fixed losing pasted text on cancel of send files box without caption.

This commit is contained in:
23rd
2026-04-28 13:01:46 +03:00
committed by John Preston
parent 3e3439bb6d
commit 9b9fb348a0
@@ -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;