mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 04:28:49 +03:00
Merge dee0115daf
into 1a00d91316
This commit is contained in:
commit
5119948a5c
1 changed files with 8 additions and 1 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "UserSettingsPage.h"
|
||||
#include "Utils.h"
|
||||
#include "encryption/Olm.h"
|
||||
#include <typeinfo>
|
||||
|
||||
//! Should be changed when a breaking change occurs in the cache format.
|
||||
//! This will reset client's data.
|
||||
|
@ -2440,7 +2441,13 @@ try {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
},
|
||||
ev);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue