mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Prevent EventType::Unsupported type events to be saved in db, avoiding exceptions
This commit is contained in:
parent
9754b94364
commit
9b9d784a82
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue