Simplify code a bit

This commit is contained in:
Loren Burkholder 2023-02-27 18:12:19 -05:00
parent 22ac5d861e
commit b4f8d4947f
3 changed files with 1 additions and 5 deletions

View file

@ -167,7 +167,6 @@ Item {
} }
MessageInput { MessageInput {
id: input
} }
} }

View file

@ -184,8 +184,6 @@ public slots:
void setSearchString(const QString &s); void setSearchString(const QString &s);
QString searchString() const { return searchString_; } QString searchString() const { return searchString_; }
bool hasCompletion() const { return rowCount() > 0; }
signals: signals:
void newSearchString(QString); void newSearchString(QString);

View file

@ -390,8 +390,7 @@ InputBar::send()
auto wasEdit = !room->edit().isEmpty(); auto wasEdit = !room->edit().isEmpty();
auto [commandName, args] = getCommandAndArgs(); if (auto [commandName, args] = getCommandAndArgs(); commandName.isNull())
if (commandName.isNull())
message(text()); message(text());
else else
command(commandName, args); command(commandName, args);