diff options
author | Tobias Fella <fella@posteo.de> | 2021-12-10 17:01:05 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2021-12-10 17:01:05 +0100 |
commit | 6b29d759a47012eef74948e72c0d0395eb6bf282 (patch) | |
tree | 69e6512eb984a5d71055fcdb441e95d06ecae5bb /lib/database.h | |
parent | 4a17403f9adad9b4390f7e0010c0f7e23a718f7b (diff) | |
download | libquotient-6b29d759a47012eef74948e72c0d0395eb6bf282.tar.gz libquotient-6b29d759a47012eef74948e72c0d0395eb6bf282.zip |
Remove data from database when leaving room
Diffstat (limited to 'lib/database.h')
-rw-r--r-- | lib/database.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/database.h b/lib/database.h index fbb940c8..b2187ba4 100644 --- a/lib/database.h +++ b/lib/database.h @@ -34,6 +34,7 @@ public: void saveMegolmSession(const QString& roomId, const QString& senderKey, const QString& sessionKey, const QByteArray& pickle); void addGroupSessionIndexRecord(const QString& roomId, const QString& sessionId, uint32_t index, const QString& eventId, qint64 ts); QPair<QString, qint64> groupSessionIndexRecord(const QString& roomId, const QString& sessionId, qint64 index); + void clearRoomData(const QString& roomId); private: void migrateTo1(); |