Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Nov 10, 2019
1 parent 9d50c47 commit fdd094a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/events/roomevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdd094a

Please sign in to comment.