diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-12 18:52:06 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-11-15 14:28:18 +0100 |
commit | 2340f3dab4f03743582099bf2d81bf4fc9976ed4 (patch) | |
tree | 778a5f9cfbdeefdd6658f8c49107cf4f0dcc1ea3 /lib/room.cpp | |
parent | 6e8be18d1587af3dc82526e32fb12d3a895908f2 (diff) | |
download | libquotient-2340f3dab4f03743582099bf2d81bf4fc9976ed4.tar.gz libquotient-2340f3dab4f03743582099bf2d81bf4fc9976ed4.zip |
Room: add power level events to redaction rules
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/room.cpp b/lib/room.cpp index dd95afe0..e3603110 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -2053,16 +2053,14 @@ RoomEventPtr makeRedacted(const RoomEvent& target, std::vector<std::pair<Event::Type, QStringList>> keepContentKeysMap { { RoomMemberEvent::typeId(), { QStringLiteral("membership") } }, - { RoomCreateEvent::typeId(), { QStringLiteral("creator") } } - // , { RoomJoinRules::typeId(), { QStringLiteral("join_rule") } } - // , { RoomPowerLevels::typeId(), - // { QStringLiteral("ban"), QStringLiteral("events"), - // QStringLiteral("events_default"), - // QStringLiteral("kick"), QStringLiteral("redact"), - // QStringLiteral("state_default"), QStringLiteral("users"), - // QStringLiteral("users_default") } } - , + { RoomCreateEvent::typeId(), { QStringLiteral("creator") } }, + { RoomPowerLevelsEvent::typeId(), + { QStringLiteral("ban"), QStringLiteral("events"), + QStringLiteral("events_default"), QStringLiteral("kick"), + QStringLiteral("redact"), QStringLiteral("state_default"), + QStringLiteral("users"), QStringLiteral("users_default") } }, { RoomAliasesEvent::typeId(), { QStringLiteral("aliases") } } + // , { RoomJoinRules::typeId(), { QStringLiteral("join_rule") } } // , { RoomHistoryVisibility::typeId(), // { QStringLiteral("history_visibility") } } }; |