Merge pull request #527 from anjanik012/ignore_event

Prevent EventType::Unsupported events to be saved in statesdb (BugFix)
pull/532/head
DeepBlueV7.X 4 years ago committed by GitHub
commit 98b2df43ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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