summary refs log tree commit diff
path: root/src/Cache.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-20 13:46:05 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-20 13:46:05 +0200
commitaa9b453f8109b70c9e65fd21f2f3fcce0e73b544 (patch)
tree131a734336f4a6db96b1b13bebbec69e0ca5b7ef /src/Cache.h
parentHide room name, if not loaded yet (diff)
downloadnheko-aa9b453f8109b70c9e65fd21f2f3fcce0e73b544.tar.xz
Store timestamp with olm sessions
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);