Fix regression around haveRendererForEvent for hidden events (#8379)

This commit is contained in:
Michael Telatynski 2022-04-21 17:57:08 +01:00 committed by GitHub
parent 399ac618c7
commit bbe0c945d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 9 deletions

View file

@ -393,6 +393,8 @@ export function haveRendererForEvent(mxEvent: MatrixEvent, showHiddenEvents: boo
return hasText(mxEvent, showHiddenEvents);
} else if (handler === STATE_EVENT_TILE_TYPES[EventType.RoomCreate]) {
return Boolean(mxEvent.getContent()['predecessor']);
} else if (handler === JSONEventFactory) {
return false;
} else {
return true;
}