aboutsummaryrefslogtreecommitdiff
path: root/lib/events/eventloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/eventloader.h')
-rw-r--r--lib/events/eventloader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/events/eventloader.h b/lib/events/eventloader.h
index ea261cac..3ee9a181 100644
--- a/lib/events/eventloader.h
+++ b/lib/events/eventloader.h
@@ -58,11 +58,11 @@ namespace QMatrixClient {
matrixType);
}
- template <typename EventT> struct FromJson<event_ptr_tt<EventT>>
+ template <typename EventT> struct FromJsonObject<event_ptr_tt<EventT>>
{
- auto operator()(const QJsonValue& jv) const
+ auto operator()(const QJsonObject& jo) const
{
- return loadEvent<EventT>(jv.toObject());
+ return loadEvent<EventT>(jo);
}
};
} // namespace QMatrixClient