mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 03:58:49 +03:00
Made style consistent with clang-format
This commit is contained in:
parent
b5d5d1c393
commit
7fb8fac6ca
1 changed files with 6 additions and 8 deletions
|
@ -1849,7 +1849,6 @@ isMessage(const mtx::events::RoomEvent<mtx::events::voip::CallHangUp> &)
|
|||
// }
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Cache::saveState(const mtx::responses::Sync &res)
|
||||
{
|
||||
|
@ -1879,16 +1878,15 @@ Cache::saveState(const mtx::responses::Sync &res)
|
|||
|
||||
auto j = nlohmann::json(event);
|
||||
try {
|
||||
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
|
||||
}
|
||||
catch (const lmdb::error &e) {
|
||||
nhlog::db()->warn("failed to save state after sync: {}, skipping event", e.what());
|
||||
return;
|
||||
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
|
||||
} catch (const lmdb::error &e) {
|
||||
nhlog::db()->warn("failed to save state after sync: {}, skipping event",
|
||||
e.what());
|
||||
return;
|
||||
}
|
||||
},
|
||||
ev);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
auto userKeyCacheDb = getUserKeysDb(txn);
|
||||
|
||||
|
|
Loading…
Reference in a new issue