diff options
author | kamathmanu <manuriddle@gmail.com> | 2021-08-03 18:25:11 -0400 |
---|---|---|
committer | kamathmanu <manuriddle@gmail.com> | 2021-08-07 17:00:28 -0400 |
commit | d3d7844106a422bd54f899f210e54dcb43a26a4c (patch) | |
tree | ab6d9250765fd513ffe366721cbe8a777f5ceac2 /src/RoomDirectoryModel.h | |
parent | Padding for search bar (diff) | |
download | nheko-d3d7844106a422bd54f899f210e54dcb43a26a4c.tar.xz |
Made only unjoined rooms joinable
Diffstat (limited to '')
-rw-r--r-- | src/RoomDirectoryModel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RoomDirectoryModel.h b/src/RoomDirectoryModel.h index ff571d93..7099ff00 100644 --- a/src/RoomDirectoryModel.h +++ b/src/RoomDirectoryModel.h @@ -56,6 +56,7 @@ public: } void fetchMore(const QModelIndex &) override; + Q_INVOKABLE bool canJoinRoom(const QByteArray &room); Q_INVOKABLE void joinRoom(const int &index = -1); signals: @@ -84,4 +85,4 @@ private: std::vector<std::string> getViasForRoom(const std::vector<std::string> &room); void resetDisplayedData(); -}; \ No newline at end of file +}; |