Fix linting issues

This commit is contained in:
Joseph Donofry 2019-08-06 08:16:19 -04:00
parent dbdaf35907
commit 41dc420edd
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
2 changed files with 3 additions and 6 deletions

View file

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

View file

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