mirror of https://github.com/vector-im/riot-web
Merge pull request #3472 from matrix-org/bwindels/fixlogout
Fix: make sure client exists while logging outpull/21833/head
commit
7113772f9d
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue