Move Controller::openOrCreateDirectChat to NeoChatConnection

This commit is contained in:
Tobias Fella
2023-10-31 09:16:59 +00:00
parent 69d378a17b
commit 33c5b418d2
5 changed files with 22 additions and 22 deletions

View File

@@ -61,6 +61,13 @@ public:
*/
Q_INVOKABLE void createSpace(const QString &name, const QString &topic, const QString &parent = {}, bool setChildParent = false);
/**
* @brief Join a direct chat with the given user.
*
* If a direct chat with the user doesn't exist one is created and then joined.
*/
Q_INVOKABLE void openOrCreateDirectChat(Quotient::User *user);
Q_SIGNALS:
void labelChanged();
};