aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-11-10 19:20:09 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-11-10 19:20:09 +0900
commitfdd094a5ef3dd8a2ef06cfa1282482a60837b317 (patch)
tree590f09c816e34cb469546db472ff5565baedc928 /lib/events
parent9d50c475ea60efa472ba6c298fbf23836edcad19 (diff)
downloadlibquotient-fdd094a5ef3dd8a2ef06cfa1282482a60837b317.tar.gz
libquotient-fdd094a5ef3dd8a2ef06cfa1282482a60837b317.zip
Cleanup
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/roomevent.cpp4
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