Fix Mark all as read
in settings (#12205)
* Fix `Mark all as read` in settings * Update tests
This commit is contained in:
parent
40ee1bb400
commit
8299abd344
6 changed files with 16 additions and 11 deletions
|
@ -57,6 +57,7 @@ import {
|
|||
import { Caption } from "../typography/Caption";
|
||||
import { SettingsSubsectionHeading } from "./shared/SettingsSubsectionHeading";
|
||||
import SettingsSubsection from "./shared/SettingsSubsection";
|
||||
import { doesRoomHaveUnreadMessages } from "../../../Unread";
|
||||
|
||||
// TODO: this "view" component still has far too much application logic in it,
|
||||
// which should be factored out to other files.
|
||||
|
@ -739,7 +740,7 @@ export default class Notifications extends React.PureComponent<IProps, IState> {
|
|||
category === RuleClass.VectorOther &&
|
||||
MatrixClientPeg.safeGet()
|
||||
.getRooms()
|
||||
.some((r) => r.getUnreadNotificationCount() > 0)
|
||||
.some((r) => doesRoomHaveUnreadMessages(r, true))
|
||||
) {
|
||||
clearNotifsButton = (
|
||||
<AccessibleButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue