Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit de6664f

Browse files
committed
Remove unneeded shouldShowEvent condition
1 parent 910aa0b commit de6664f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/components/structures/MessagePanel.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,6 @@ export default class MessagePanel extends React.Component<IProps, IState> {
470470

471471
// TODO: Implement granular (per-room) hide options
472472
public shouldShowEvent(mxEv: MatrixEvent, forceHideEvents = false): boolean {
473-
if (this.props.hideThreadedMessages && this.threadsEnabled && this.props.room) {
474-
const { shouldLiveInRoom } = this.props.room.eventShouldLiveIn(mxEv, this.props.events);
475-
if (!shouldLiveInRoom) {
476-
return false;
477-
}
478-
}
479-
480473
if (MatrixClientPeg.get().isUserIgnored(mxEv.getSender())) {
481474
return false; // ignored = no show (only happens if the ignore happens after an event was received)
482475
}

0 commit comments

Comments
 (0)