diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-12 18:51:35 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-12 18:51:35 +0100 |
commit | 4cc8838c3bbe712493a4f6ddbecd0f7093e907bb (patch) | |
tree | a0efd33b273d044acf380b1f1370cf27d50c6c96 /lib/room.cpp | |
parent | 39b80fa8eb9b70d287aa453663b845319d8b6196 (diff) | |
download | libquotient-4cc8838c3bbe712493a4f6ddbecd0f7093e907bb.tar.gz libquotient-4cc8838c3bbe712493a4f6ddbecd0f7093e907bb.zip |
More JSON key constants
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index e98116a9..57de4f0c 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -2064,8 +2064,8 @@ RoomEventPtr makeRedacted(const RoomEvent& target, { auto originalJson = target.originalJsonObject(); // clang-format off - static const QStringList keepKeys { EventIdKey, TypeKey, - QStringLiteral("room_id"), QStringLiteral("sender"), StateKeyKey, + static const QStringList keepKeys { + EventIdKey, TypeKey, RoomIdKey, SenderKey, StateKeyKey, QStringLiteral("hashes"), QStringLiteral("signatures"), QStringLiteral("depth"), QStringLiteral("prev_events"), QStringLiteral("prev_state"), QStringLiteral("auth_events"), |