You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
make sure client exists while logging out
This commit is contained in:
@@ -1830,7 +1830,8 @@ export default createReactClass({
|
||||
|
||||
_setPageSubtitle: function(subtitle='') {
|
||||
if (this.state.currentRoomId) {
|
||||
const room = MatrixClientPeg.get().getRoom(this.state.currentRoomId);
|
||||
const client = MatrixClientPeg.get();
|
||||
const room = client && client.getRoom(this.state.currentRoomId);
|
||||
if (room) {
|
||||
subtitle = `| ${ room.name } ${subtitle}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user