Use cached RoomContext settings values throughout rooms
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
13196b8146
commit
3bf8e54d7f
3 changed files with 9 additions and 3 deletions
|
@ -859,7 +859,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||
// update unread count when scrolled up
|
||||
if (!this.state.searchResults && this.state.atEndOfLiveTimeline) {
|
||||
// no change
|
||||
} else if (!shouldHideEvent(ev)) {
|
||||
} else if (!shouldHideEvent(ev, this.state)) {
|
||||
this.setState((state, props) => {
|
||||
return {numUnreadMessages: state.numUnreadMessages + 1};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue