Automatically enter room when joining it

Related to #352 but needs an additional Quotient patch to works
This commit is contained in:
Carl Schwan
2021-05-07 22:37:16 +02:00
parent 1615695b21
commit 5f8795c41f
5 changed files with 20 additions and 14 deletions

View File

@@ -31,6 +31,7 @@ class RoomManager : public QObject, public UriResolverBase
public:
explicit RoomManager(QObject *parent = nullptr);
virtual ~RoomManager();
static RoomManager &instance();
/// Load the last opened room or the welcome page.
Q_INVOKABLE void loadInitialRoom();
@@ -104,5 +105,3 @@ private:
QString m_arg;
KConfig m_config;
};
Q_GLOBAL_STATIC(RoomManager, roomManager)