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

Commit 14e5ffb

Browse files
authored
Merge pull request #10096 from tnt7864/unread-title-indicator
Indicate unread messages in tab title
2 parents 54a6ce5 + 4c79455 commit 14e5ffb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ import GenericToast from "../views/toasts/GenericToast";
139139
import RovingSpotlightDialog, { Filter } from "../views/dialogs/spotlight/SpotlightDialog";
140140
import { findDMForUser } from "../../utils/dm/findDMForUser";
141141
import { Linkify } from "../../HtmlUtils";
142+
import { NotificationColor } from "../../stores/notifications/NotificationColor";
142143

143144
// legacy export
144145
export { default as Views } from "../../Views";
@@ -1961,6 +1962,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
19611962
}
19621963
if (numUnreadRooms > 0) {
19631964
this.subTitleStatus += `[${numUnreadRooms}]`;
1965+
} else if (notificationState.color >= NotificationColor.Bold) {
1966+
this.subTitleStatus += `*`;
19641967
}
19651968

19661969
this.setPageSubtitle();

0 commit comments

Comments
 (0)