Merge pull request #3613 from matrix-org/travis/count-in-front

Move notification count to in front of the room name in the page title
This commit is contained in:
Travis Ralston 2019-11-13 08:40:32 -07:00 committed by GitHub
commit eeebb0ee2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1767,10 +1767,12 @@ export default createReactClass({
const client = MatrixClientPeg.get();
const room = client && client.getRoom(this.state.currentRoomId);
if (room) {
subtitle = `| ${ room.name } ${subtitle}`;
subtitle = `${this.subTitleStatus} | ${ room.name } ${subtitle}`;
}
} else {
subtitle = `${this.subTitleStatus} ${subtitle}`;
}
document.title = `${SdkConfig.get().brand || 'Riot'} ${subtitle} ${this.subTitleStatus}`;
document.title = `${SdkConfig.get().brand || 'Riot'} ${subtitle}`;
},
updateStatusIndicator: function(state, prevState) {