From 345dca35444771267f51fe011c62e5d135695069 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 25 Aug 2018 21:08:43 +0300 Subject: Add method to delete old messages periodically fixes #413 --- src/Cache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Cache.h') diff --git a/src/Cache.h b/src/Cache.h index beca502f..c2f8cfc8 100644 --- a/src/Cache.h +++ b/src/Cache.h @@ -388,6 +388,12 @@ public: //! Check if we have sent a desktop notification for the given event id. bool isNotificationSent(const std::string &event_id); + //! Remove old unused data. + void deleteOldMessages(); + void deleteOldData() noexcept; + //! Retrieve all saved room ids. + std::vector getRoomIds(lmdb::txn &txn); + //! Mark a room that uses e2e encryption. void setEncryptedRoom(lmdb::txn &txn, const std::string &room_id); bool isRoomEncrypted(const std::string &room_id); -- cgit 1.5.1