Fix regression around haveRendererForEvent for hidden events (#8379)
This commit is contained in:
@@ -452,14 +452,6 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||
}
|
||||
}
|
||||
|
||||
/* check the scroll state and send out pagination requests if necessary.
|
||||
*/
|
||||
public checkFillState(): void {
|
||||
if (this.scrollPanel.current) {
|
||||
this.scrollPanel.current.checkFillState();
|
||||
}
|
||||
}
|
||||
|
||||
private isUnmounting = (): boolean => {
|
||||
return !this.isMounted;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user