Remove lag when starting user autocompletion

We realistically don't need to interate over every user when typing '@',
since this is not usefull for the user and create some lag.
This commit is contained in:
Carl Schwan
2021-12-25 18:31:22 +01:00
parent 26f0cd4cf4
commit ca2b5fde8e
3 changed files with 8 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ public:
Q_INVOKABLE [[nodiscard]] int savedBottomVisibleIndex() const;
Q_INVOKABLE void saveViewport(int topIndex, int bottomIndex);
Q_INVOKABLE [[nodiscard]] QVariantList getUsers(const QString &keyword) const;
Q_INVOKABLE [[nodiscard]] QVariantList getUsers(const QString &keyword, int limit = -1) const;
Q_INVOKABLE [[nodiscard]] QVariantMap getUser(const QString &userID) const;
Q_INVOKABLE QUrl urlToMxcUrl(const QUrl &mxcUrl);