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
|
void
|
||||||
Cache::saveState(const mtx::responses::Sync &res)
|
Cache::saveState(const mtx::responses::Sync &res)
|
||||||
{
|
{
|
||||||
|
@ -1880,16 +1879,15 @@ Cache::saveState(const mtx::responses::Sync &res)
|
||||||
auto j = nlohmann::json(event);
|
auto j = nlohmann::json(event);
|
||||||
try {
|
try {
|
||||||
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
|
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
|
||||||
}
|
} catch (const lmdb::error &e) {
|
||||||
catch (const lmdb::error &e) {
|
nhlog::db()->warn("failed to save state after sync: {}, skipping event",
|
||||||
nhlog::db()->warn("failed to save state after sync: {}, skipping event", e.what());
|
e.what());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ev);
|
ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
auto userKeyCacheDb = getUserKeysDb(txn);
|
auto userKeyCacheDb = getUserKeysDb(txn);
|
||||||
|
|
||||||
std::set<std::string> spaces_with_updates;
|
std::set<std::string> spaces_with_updates;
|
||||||
|
|
Loading…
Reference in a new issue