summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-10-20 23:12:51 +0200
committerGitHub <noreply@github.com>2020-10-20 23:12:51 +0200
commitb977c1e621149b58d775793b17964bdcd118e400 (patch)
tree5fbb294741e4732907fd0a214fb8ddaa0232cce1 /src/Cache.h
parentActually forward keys using m.forwared_room_key (diff)
parentFix corrupt channel + add additional debugging (diff)
downloadnheko-b977c1e621149b58d775793b17964bdcd118e400.tar.xz
Merge pull request #305 from Nheko-Reborn/encrypted_device_messages
Encrypted device messages
Diffstat (limited to 'src/Cache.h')
-rw-r--r--src/Cache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Cache.h b/src/Cache.h

index cd96708e..24b6df9e 100644 --- a/src/Cache.h +++ b/src/Cache.h
@@ -292,11 +292,15 @@ inboundMegolmSessionExists(const MegolmSessionIndex &index); // Olm Sessions // void -saveOlmSession(const std::string &curve25519, mtx::crypto::OlmSessionPtr session); +saveOlmSession(const std::string &curve25519, + mtx::crypto::OlmSessionPtr session, + uint64_t timestamp); std::vector<std::string> getOlmSessions(const std::string &curve25519); std::optional<mtx::crypto::OlmSessionPtr> getOlmSession(const std::string &curve25519, const std::string &session_id); +std::optional<mtx::crypto::OlmSessionPtr> +getLatestOlmSession(const std::string &curve25519); void saveOlmAccount(const std::string &pickled);