diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-11-10 19:20:09 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-11-10 19:20:09 +0900 |
commit | fdd094a5ef3dd8a2ef06cfa1282482a60837b317 (patch) | |
tree | 590f09c816e34cb469546db472ff5565baedc928 /lib/events/roomevent.cpp | |
parent | 9d50c475ea60efa472ba6c298fbf23836edcad19 (diff) | |
download | libquotient-fdd094a5ef3dd8a2ef06cfa1282482a60837b317.tar.gz libquotient-fdd094a5ef3dd8a2ef06cfa1282482a60837b317.zip |
Cleanup
Diffstat (limited to 'lib/events/roomevent.cpp')
-rw-r--r-- | lib/events/roomevent.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/events/roomevent.cpp b/lib/events/roomevent.cpp index 971d8597..4a9a8b5d 100644 --- a/lib/events/roomevent.cpp +++ b/lib/events/roomevent.cpp @@ -36,10 +36,8 @@ RoomEvent::RoomEvent(Type type, const QJsonObject& json) : Event(type, json) { const auto unsignedData = json[UnsignedKeyL].toObject(); const auto redaction = unsignedData[RedactedCauseKeyL]; - if (redaction.isObject()) { + if (redaction.isObject()) _redactedBecause = makeEvent<RedactionEvent>(redaction.toObject()); - return; - } } RoomEvent::~RoomEvent() = default; // Let the smart pointer do its job |