RoomManger connection

RoomManger should just get it's connection from Controller, no need to involve QML
This commit is contained in:
James Graham
2024-03-30 19:48:34 +00:00
parent 64b8cd5bcc
commit eaf4663c84
5 changed files with 10 additions and 12 deletions

View File

@@ -45,8 +45,6 @@ class RoomManager : public QObject, public UriResolverBase
QML_ELEMENT
QML_SINGLETON
Q_PROPERTY(NeoChatConnection *connection READ connection WRITE setConnection NOTIFY connectionChanged)
/**
* @brief The current open room in NeoChat, if any.
*
@@ -204,7 +202,9 @@ public:
bool directChatsActive() const;
void setDirectChatsActive(bool directChatsActive);
NeoChatConnection *connection() const;
/**
* @brief Set the current connection
*/
void setConnection(NeoChatConnection *connection);
Q_SIGNALS: