Fix linting issues

remotes/origin/0.7.0-dev
Joseph Donofry 5 years ago
parent dbdaf35907
commit 41dc420edd
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 6
      src/Cache.cpp
  2. 3
      src/Cache.h

@ -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();

@ -407,7 +407,8 @@ public:
const std::string &room_id,
const mtx::responses::Notifications &res);
//! Get timeline items that a user was mentions in
mtx::responses::Notifications getTimelineMentions(lmdb::txn &txn, const std::string &room_id);
mtx::responses::Notifications getTimelineMentions(lmdb::txn &txn,
const std::string &room_id);
//! Remove old unused data.
void deleteOldMessages();

Loading…
Cancel
Save