diff options
author | Tobias Fella <fella@posteo.de> | 2022-04-16 23:18:14 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-04-16 23:18:14 +0200 |
commit | bcde0a74e82e7dbb9eed6b108ebbb63941da34ea (patch) | |
tree | 1c21f5f4bba2ce5275be692e5bfea628779c0044 /lib/database.h | |
parent | 7cd71c978f39a0bd8f82ebdf01cbaaf317ebe020 (diff) | |
parent | 87e8d6d6ef325f176a7d3b5da441569f9b24c847 (diff) | |
download | libquotient-bcde0a74e82e7dbb9eed6b108ebbb63941da34ea.tar.gz libquotient-bcde0a74e82e7dbb9eed6b108ebbb63941da34ea.zip |
Merge branch 'dev' into sendmessages
Diffstat (limited to 'lib/database.h')
-rw-r--r-- | lib/database.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/database.h b/lib/database.h index 4a047161..3eb26b0a 100644 --- a/lib/database.h +++ b/lib/database.h @@ -10,6 +10,7 @@ #include <QtCore/QHash> #include "e2ee/e2ee.h" + #include "e2ee/qolmoutboundsession.h" namespace Quotient { @@ -35,8 +36,8 @@ public: void clear(); void saveOlmSession(const QString& senderKey, const QString& sessionId, const QByteArray& pickle, const QDateTime& timestamp); UnorderedMap<QString, std::vector<QOlmSessionPtr>> loadOlmSessions(const PicklingMode& picklingMode); - UnorderedMap<std::pair<QString, QString>, QOlmInboundGroupSessionPtr> loadMegolmSessions(const QString& roomId, const PicklingMode& picklingMode); - void saveMegolmSession(const QString& roomId, const QString& senderKey, const QString& sessionKey, const QString& ed25519Key, const QByteArray& pickle); + UnorderedMap<QString, QOlmInboundGroupSessionPtr> loadMegolmSessions(const QString& roomId, const PicklingMode& picklingMode); + void saveMegolmSession(const QString& roomId, const QString& sessionId, const QByteArray& pickle, const QString& senderId, const QString& olmSessionId); void addGroupSessionIndexRecord(const QString& roomId, const QString& sessionId, uint32_t index, const QString& eventId, qint64 ts); std::pair<QString, qint64> groupSessionIndexRecord(const QString& roomId, const QString& sessionId, qint64 index); void clearRoomData(const QString& roomId); @@ -53,6 +54,8 @@ private: void migrateTo1(); void migrateTo2(); void migrateTo3(); + void migrateTo4(); + QString m_matrixId; }; } |