Don't offer sending text as file if hasImage.

This commit is contained in:
John Preston
2026-04-19 23:06:28 +07:00
parent 9878ee6fa7
commit f543c2569e
@@ -84,6 +84,9 @@ int SendAsFilePasteThreshold() {
LargeTextPasteResult CheckLargeTextPaste(
not_null<Ui::InputField*> field,
not_null<const QMimeData*> data) {
if (data->hasImage()) {
return {};
}
const auto pasteText = Core::ReadMimeText(data);
if (pasteText.isEmpty()) {
return {};