aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp26
1 files changed, 10 insertions, 16 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 0806e30d..be07ce50 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1934,22 +1934,16 @@ RoomEventPtr makeRedacted(const RoomEvent& target,
const RedactionEvent& redaction)
{
auto originalJson = target.originalJsonObject();
- static const QStringList keepKeys { EventIdKey,
- TypeKey,
- QStringLiteral("room_id"),
- QStringLiteral("sender"),
- StateKeyKey,
- QStringLiteral("prev_content"),
- ContentKey,
- QStringLiteral("hashes"),
- QStringLiteral("signatures"),
- QStringLiteral("depth"),
- QStringLiteral("prev_events"),
- QStringLiteral("prev_state"),
- QStringLiteral("auth_events"),
- QStringLiteral("origin"),
- QStringLiteral("origin_server_ts"),
- QStringLiteral("membership") };
+ // clang-format off
+ static const QStringList keepKeys { EventIdKey, TypeKey,
+ QStringLiteral("room_id"), QStringLiteral("sender"), StateKeyKey,
+ QStringLiteral("prev_content"), ContentKey,
+ QStringLiteral("hashes"), QStringLiteral("signatures"),
+ QStringLiteral("depth"), QStringLiteral("prev_events"),
+ QStringLiteral("prev_state"), QStringLiteral("auth_events"),
+ QStringLiteral("origin"), QStringLiteral("origin_server_ts"),
+ QStringLiteral("membership") };
+ // clang-format on
std::vector<std::pair<Event::Type, QStringList>> keepContentKeysMap {
{ RoomMemberEvent::typeId(), { QStringLiteral("membership") } },