mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix linting issues
This commit is contained in:
parent
dbdaf35907
commit
41dc420edd
2 changed files with 3 additions and 6 deletions
|
@ -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…
Reference in a new issue