mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Compare commits
4 commits
5119948a5c
...
fe68854dd1
Author | SHA1 | Date | |
---|---|---|---|
|
fe68854dd1 | ||
|
dee0115daf | ||
|
7fb8fac6ca | ||
|
b5d5d1c393 |
1 changed files with 8 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
#include "UserSettingsPage.h"
|
#include "UserSettingsPage.h"
|
||||||
#include "Utils.h"
|
#include "Utils.h"
|
||||||
#include "encryption/Olm.h"
|
#include "encryption/Olm.h"
|
||||||
|
#include <typeinfo>
|
||||||
|
|
||||||
//! Should be changed when a breaking change occurs in the cache format.
|
//! Should be changed when a breaking change occurs in the cache format.
|
||||||
//! This will reset client's data.
|
//! This will reset client's data.
|
||||||
|
@ -2290,7 +2291,13 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
auto j = nlohmann::json(event);
|
auto j = nlohmann::json(event);
|
||||||
accountDataDb.put(txn, j["type"].get<std::string>(), j.dump());
|
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);
|
ev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue