Merge pull request #527 from anjanik012/ignore_event
Prevent EventType::Unsupported events to be saved in statesdb (BugFix)
This commit is contained in:
commit
98b2df43ad
@ -381,7 +381,7 @@ private:
|
|||||||
|
|
||||||
std::visit(
|
std::visit(
|
||||||
[&txn, &statesdb](auto e) {
|
[&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());
|
statesdb.put(txn, to_string(e.type), json(e).dump());
|
||||||
},
|
},
|
||||||
event);
|
event);
|
||||||
|
Loading…
Reference in New Issue
Block a user