summary refs log tree commit diff
path: root/src/RoomDirectoryModel.h
diff options
context:
space:
mode:
authorkamathmanu <manuriddle@gmail.com>2021-08-03 18:25:11 -0400
committerkamathmanu <manuriddle@gmail.com>2021-08-07 17:00:28 -0400
commitd3d7844106a422bd54f899f210e54dcb43a26a4c (patch)
treeab6d9250765fd513ffe366721cbe8a777f5ceac2 /src/RoomDirectoryModel.h
parentPadding for search bar (diff)
downloadnheko-d3d7844106a422bd54f899f210e54dcb43a26a4c.tar.xz
Made only unjoined rooms joinable
Diffstat (limited to '')
-rw-r--r--src/RoomDirectoryModel.h3
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
+};