From 5dfd26abc5c57fe278a3b396a793da11f56eae6f Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 21 Jul 2018 21:40:11 +0300 Subject: Reject key requests for users that are not members of the room --- src/Cache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Cache.h') diff --git a/src/Cache.h b/src/Cache.h index d5d1729e..beca502f 100644 --- a/src/Cache.h +++ b/src/Cache.h @@ -400,6 +400,9 @@ public: void setDeviceList(const std::string &user_id, const std::vector &devices); std::vector getDeviceList(const std::string &user_id); + //! Check if a user is a member of the room. + bool isRoomMember(const std::string &user_id, const std::string &room_id); + // // Outbound Megolm Sessions // -- cgit 1.5.1