Merge pull request #527 from anjanik012/ignore_event

Prevent EventType::Unsupported events to be saved in statesdb (BugFix)
This commit is contained in:
DeepBlueV7.X 2021-03-17 22:19:23 +01:00 committed by GitHub
commit 98b2df43ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);