aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/Room.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/dchat/Room.hpp')
-rw-r--r--include/dchat/Room.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dchat/Room.hpp b/include/dchat/Room.hpp
index 4938aea..5dd0e3f 100644
--- a/include/dchat/Room.hpp
+++ b/include/dchat/Room.hpp
@@ -8,6 +8,7 @@
#include <memory>
#include <vector>
#include <functional>
+#include <mutex>
#include <odhtdb/Database.hpp>
namespace dchat
@@ -26,7 +27,7 @@ namespace dchat
{
DISABLE_COPY(Room)
public:
- Room(Rooms *rooms, std::shared_ptr<odhtdb::Hash> id, std::shared_ptr<odhtdb::OwnedByteArray> encryptionKey);
+ Room(Rooms *rooms, std::shared_ptr<odhtdb::Hash> id);
std::shared_ptr<User> addUser(const odhtdb::Signature::PublicKey &userPublicKey, const odhtdb::DataView groupId);
// Returns null if user doesn't exist in room
std::shared_ptr<User> getUserByPublicKey(const odhtdb::Signature::PublicKey &userPublicKey);
@@ -114,5 +115,6 @@ namespace dchat
std::string currentUsername;
std::string currentUserPassword;
+ std::recursive_mutex roomModifyMutex;
};
} \ No newline at end of file