Send images on enter if input bar is empty

This commit is contained in:
Nicolas Werner 2022-05-23 12:32:04 +02:00
parent c792fd28b1
commit ac5e3fe3e8
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -296,8 +296,10 @@ InputBar::send()
{
QInputMethod *im = QGuiApplication::inputMethod();
im->commit();
if (text().trimmed().isEmpty())
if (text().trimmed().isEmpty()) {
acceptUploads();
return;
}
nhlog::ui()->debug("Send: {}", text().toStdString());