3 files changed, 1 insertions, 5 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 100ed1d7..cc615fd3 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -167,7 +167,6 @@ Item {
}
MessageInput {
- id: input
}
}
diff --git a/src/CompletionProxyModel.h b/src/CompletionProxyModel.h
index 90daf7ad..e0f00788 100644
--- a/src/CompletionProxyModel.h
+++ b/src/CompletionProxyModel.h
@@ -184,8 +184,6 @@ public slots:
void setSearchString(const QString &s);
QString searchString() const { return searchString_; }
- bool hasCompletion() const { return rowCount() > 0; }
-
signals:
void newSearchString(QString);
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 6c882cd4..2491b5c1 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -390,8 +390,7 @@ InputBar::send()
auto wasEdit = !room->edit().isEmpty();
- auto [commandName, args] = getCommandAndArgs();
- if (commandName.isNull())
+ if (auto [commandName, args] = getCommandAndArgs(); commandName.isNull())
message(text());
else
command(commandName, args);
|