diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-20 13:46:05 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-10-20 13:46:05 +0200 |
commit | aa9b453f8109b70c9e65fd21f2f3fcce0e73b544 (patch) | |
tree | 131a734336f4a6db96b1b13bebbec69e0ca5b7ef /src/timeline/TimelineModel.cpp | |
parent | Hide room name, if not loaded yet (diff) | |
download | nheko-aa9b453f8109b70c9e65fd21f2f3fcce0e73b544.tar.xz |
Store timestamp with olm sessions
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 3 |
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()); |