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

pull/527/head
Anjani Kumar 4 years ago
parent 9754b94364
commit 9b9d784a82
No known key found for this signature in database
GPG Key ID: 266B031C4A95FFCC
  1. 2
      src/Cache_p.h

@ -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);

Loading…
Cancel
Save