Store timestamp with olm sessions
This commit is contained in:
parent
b3a7f0b888
commit
aa9b453f81
9 changed files with 191 additions and 19 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue