Merge pull request #5045 from matrix-org/t3chguy/fix/10818
Mass redact ignore room creation events
This commit is contained in:
commit
25499fc687
1 changed files with 3 additions and 1 deletions
|
@ -550,7 +550,9 @@ const RedactMessagesButton = ({member}) => {
|
||||||
let eventsToRedact = [];
|
let eventsToRedact = [];
|
||||||
while (timeline) {
|
while (timeline) {
|
||||||
eventsToRedact = timeline.getEvents().reduce((events, event) => {
|
eventsToRedact = timeline.getEvents().reduce((events, event) => {
|
||||||
if (event.getSender() === userId && !event.isRedacted() && !event.isRedaction()) {
|
if (event.getSender() === userId && !event.isRedacted() && !event.isRedaction() &&
|
||||||
|
event.getType() !== "m.room.create"
|
||||||
|
) {
|
||||||
return events.concat(event);
|
return events.concat(event);
|
||||||
} else {
|
} else {
|
||||||
return events;
|
return events;
|
||||||
|
|
Loading…
Reference in a new issue