mirror of https://github.com/vector-im/riot-web
Move notification count to in front of the room name in the page title
Fixes https://github.com/vector-im/riot-web/issues/10943pull/21833/head
parent
d0cbcb85f5
commit
fd28cf7a4c
|
@ -1767,10 +1767,12 @@ export default createReactClass({
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
const room = client && client.getRoom(this.state.currentRoomId);
|
const room = client && client.getRoom(this.state.currentRoomId);
|
||||||
if (room) {
|
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) {
|
updateStatusIndicator: function(state, prevState) {
|
||||||
|
|
Loading…
Reference in New Issue