diff options
Diffstat (limited to 'lib/events/redactionevent.h')
-rw-r--r-- | lib/events/redactionevent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/events/redactionevent.h b/lib/events/redactionevent.h index ed560331..be20bf52 100644 --- a/lib/events/redactionevent.h +++ b/lib/events/redactionevent.h @@ -17,7 +17,7 @@ public: { return fullJson()["redacts"_ls].toString(); } - QString reason() const { return contentJson()["reason"_ls].toString(); } + QString reason() const { return contentPart<QString>("reason"_ls); } }; REGISTER_EVENT_TYPE(RedactionEvent) } // namespace Quotient |