diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2019-08-06 08:16:19 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2019-08-06 08:16:19 -0400 |
commit | 41dc420edd2cb96d9a4d7deb15d1ef9984fecdcc (patch) | |
tree | 7aeebb6065094f04234baafe53d6b2fcdf56bdcb /src/Cache.cpp | |
parent | Cache user mentions (diff) | |
download | nheko-41dc420edd2cb96d9a4d7deb15d1ef9984fecdcc.tar.xz |
Fix linting issues
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r-- | src/Cache.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp index 7b688ac7..9bf3b5b0 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -1972,7 +1972,6 @@ Cache::saveTimelineMentions(lmdb::txn &txn, using namespace mtx::events::state; for (const auto &n : res.notifications) { - const auto event_id = utils::event_id(n.event); // double check that we have the correct room_id... @@ -1981,10 +1980,7 @@ Cache::saveTimelineMentions(lmdb::txn &txn, json obj = json::object(); - lmdb::dbi_put(txn, - db, - lmdb::val(event_id), - lmdb::val(obj.dump())); + lmdb::dbi_put(txn, db, lmdb::val(event_id), lmdb::val(obj.dump())); } txn.commit(); |