mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Don't offer sending text as file if hasImage.
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user