summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
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/timeline/TimelineModel.cpp
parentHide room name, if not loaded yet (diff)
downloadnheko-aa9b453f8109b70c9e65fd21f2f3fcce0e73b544.tar.xz
Store timestamp with olm sessions
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 359e95bc..5db6aa00 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -1138,7 +1138,8 @@ TimelineModel::handleClaimedKeys(
                           pks.at(user_id).at(device_id).curve25519);
 
                         try {
-                                cache::saveOlmSession(id_key, std::move(s));
+                                cache::saveOlmSession(
+                                  id_key, std::move(s), QDateTime::currentMSecsSinceEpoch());
                         } catch (const lmdb::error &e) {
                                 nhlog::db()->critical("failed to save outbound olm session: {}",
                                                       e.what());