summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAnjani Kumar <anjanik012@gmail.com>2021-03-18 02:09:23 +0530
committerAnjani Kumar <anjanik012@gmail.com>2021-03-18 02:09:23 +0530
commit9b9d784a8231a23c22251fba0f81b538cd78331a (patch)
treeebff4933bc3769fd9e5c20eba962fca73fb4c620 /src
parentUse old hunter directory (diff)
downloadnheko-9b9d784a8231a23c22251fba0f81b538cd78331a.tar.xz
Prevent EventType::Unsupported type events to be saved in db, avoiding exceptions
Diffstat (limited to 'src')
-rw-r--r--src/Cache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h

index 473c6319..3454cd54 100644 --- a/src/Cache_p.h +++ b/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);