aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/events/accountdataevents.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h
index a99d85ac..ffee5ba6 100644
--- a/lib/events/accountdataevents.h
+++ b/lib/events/accountdataevents.h
@@ -85,7 +85,7 @@ namespace QMatrixClient
toJson(std::move(content)) } }) \
{ } \
auto _ContentKey() const \
- { return fromJson<content_type>(contentJson()[#_ContentKey##_ls]); } \
+ { return content<content_type>(#_ContentKey##_ls); } \
}; \
REGISTER_EVENT_TYPE(_Name) \
// End of macro