diff options
author | Malte E <97891689+maltee1@users.noreply.github.com> | 2023-02-01 00:59:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 16:59:49 +0000 |
commit | 5ed3bfc8f82e9123db4c198b6b9701df57c968f4 (patch) | |
tree | 9cb27ca2ed00830dba9d8adcc780d1b5296dd7cc /src/InviteesModel.h | |
parent | Merge pull request #1319 from Decodetalkers/menuhideonwayland (diff) | |
download | nheko-5ed3bfc8f82e9123db4c198b6b9701df57c968f4.tar.xz |
add user search to invite dialog (#1253)
Diffstat (limited to 'src/InviteesModel.h')
-rw-r--r-- | src/InviteesModel.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/InviteesModel.h b/src/InviteesModel.h index 91b89a21..828f80e2 100644 --- a/src/InviteesModel.h +++ b/src/InviteesModel.h @@ -15,7 +15,10 @@ class Invitee final : public QObject Q_OBJECT public: - Invitee(QString mxid, QObject *parent = nullptr); + Invitee(QString mxid, + QString displayName = "", + QString avatarUrl = "", + QObject *parent = nullptr); signals: void userInfoLoaded(); @@ -44,7 +47,7 @@ public: InviteesModel(QObject *parent = nullptr); - Q_INVOKABLE void addUser(QString mxid); + Q_INVOKABLE void addUser(QString mxid, QString displayName = "", QString avatarUrl = ""); Q_INVOKABLE void removeUser(QString mxid); [[nodiscard]] QHash<int, QByteArray> roleNames() const override; |