Use redaction enum event type rather than hardcoded string (#8071)
This commit is contained in:
@@ -107,7 +107,7 @@ export default class MessageEditHistoryDialog extends React.PureComponent<IProps
|
||||
const pendingEvents = room.getPendingEvents();
|
||||
for (const e of newEvents) {
|
||||
const pendingRedaction = pendingEvents.find(pe => {
|
||||
return pe.getType() === "m.room.redaction" && pe.getAssociatedId() === e.getId();
|
||||
return pe.getType() === EventType.RoomRedaction && pe.getAssociatedId() === e.getId();
|
||||
});
|
||||
if (pendingRedaction) {
|
||||
e.markLocallyRedacted(pendingRedaction);
|
||||
|
||||
Reference in New Issue
Block a user