mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Merge pull request #10096 from tnt7864/unread-title-indicator
Indicate unread messages in tab title
This commit is contained in:
commit
14e5ffbd31
1 changed files with 3 additions and 0 deletions
|
@ -139,6 +139,7 @@ import GenericToast from "../views/toasts/GenericToast";
|
|||
import RovingSpotlightDialog, { Filter } from "../views/dialogs/spotlight/SpotlightDialog";
|
||||
import { findDMForUser } from "../../utils/dm/findDMForUser";
|
||||
import { Linkify } from "../../HtmlUtils";
|
||||
import { NotificationColor } from "../../stores/notifications/NotificationColor";
|
||||
|
||||
// legacy export
|
||||
export { default as Views } from "../../Views";
|
||||
|
@ -1961,6 +1962,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
}
|
||||
if (numUnreadRooms > 0) {
|
||||
this.subTitleStatus += `[${numUnreadRooms}]`;
|
||||
} else if (notificationState.color >= NotificationColor.Bold) {
|
||||
this.subTitleStatus += `*`;
|
||||
}
|
||||
|
||||
this.setPageSubtitle();
|
||||
|
|
Loading…
Reference in a new issue