mirror of https://github.com/vector-im/riot-web
Mass redact ignore room creation events
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
593ed81c8a
commit
253d4abb49
|
@ -550,7 +550,9 @@ const RedactMessagesButton = ({member}) => {
|
|||
let eventsToRedact = [];
|
||||
while (timeline) {
|
||||
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);
|
||||
} else {
|
||||
return events;
|
||||
|
|
Loading…
Reference in New Issue