summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-25 21:08:43 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-25 21:08:43 +0300
commit345dca35444771267f51fe011c62e5d135695069 (patch)
treea36cfbc42308c02caf608afa6049b7423e85614e /src/Cache.h
parentBump version to v0.5.4 (diff)
downloadnheko-345dca35444771267f51fe011c62e5d135695069.tar.xz
Add method to delete old messages periodically
fixes #413
Diffstat (limited to 'src/Cache.h')
-rw-r--r--src/Cache.h6
1 files changed, 6 insertions, 0 deletions
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<std::string> 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);