Prevent EventType::Unsupported type events to be saved in db, avoiding exceptions

This commit is contained in:
Anjani Kumar 2021-03-18 02:09:23 +05:30
parent 9754b94364
commit 9b9d784a82
No known key found for this signature in database
GPG Key ID: 266B031C4A95FFCC
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ private:
std::visit(
[&txn, &statesdb](auto e) {
if constexpr (isStateEvent(e))
if (isStateEvent(e) && e.type != EventType::Unsupported)
statesdb.put(txn, to_string(e.type), json(e).dump());
},
event);