You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Merge pull request #5254 from resynth1943/only-refresh-title-if-needed
Only set title when it changes
This commit is contained in:
@@ -1855,7 +1855,12 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||||||
} else {
|
} else {
|
||||||
subtitle = `${this.subTitleStatus} ${subtitle}`;
|
subtitle = `${this.subTitleStatus} ${subtitle}`;
|
||||||
}
|
}
|
||||||
document.title = `${SdkConfig.get().brand} ${subtitle}`;
|
|
||||||
|
const title = `${SdkConfig.get().brand} ${subtitle}`;
|
||||||
|
|
||||||
|
if (document.title !== title) {
|
||||||
|
document.title = title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateStatusIndicator(state: string, prevState: string) {
|
updateStatusIndicator(state: string, prevState: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user