summary refs log tree commit diff
path: root/include/Cache.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-13 12:28:00 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-13 12:28:00 +0300
commit5d47cc3940076f6e7da4578d985253c869117f21 (patch)
treef851f52a57561787c2ba856d5d2d864825eea215 /include/Cache.h
parentAdd method to convert PendingMessage's to event types (diff)
downloadnheko-5d47cc3940076f6e7da4578d985253c869117f21.tar.xz
Add support for sending encrypted messages
Diffstat (limited to 'include/Cache.h')
-rw-r--r--include/Cache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/Cache.h b/include/Cache.h

index 76266ebd..b4dcdb90 100644 --- a/include/Cache.h +++ b/include/Cache.h
@@ -286,6 +286,9 @@ public: bool isFormatValid(); void setCurrentFormat(); + //! Retrieve all the user ids from a room. + std::vector<std::string> roomMembers(const std::string &room_id); + //! Check if the given user has power leve greater than than //! lowest power level of the given events. bool hasEnoughPowerLevel(const std::vector<mtx::events::EventType> &eventTypes, @@ -358,8 +361,9 @@ public: void saveOutboundMegolmSession(const std::string &room_id, const OutboundGroupSessionData &data, mtx::crypto::OutboundGroupSessionPtr session); - OutboundGroupSessionDataRef getOutboundMegolmSession(const MegolmSessionIndex &index); - bool outboundMegolmSessionExists(const MegolmSessionIndex &index) noexcept; + OutboundGroupSessionDataRef getOutboundMegolmSession(const std::string &room_id); + bool outboundMegolmSessionExists(const std::string &room_id) noexcept; + void updateOutboundMegolmSession(const std::string &room_id, int message_index); // // Inbound Megolm Sessions