Don't refresh custom status on logout
The RoomTile gets remounted during logout due to the room stores being obliterated, however this causes the render() function to check if it should be showing custom status. If you have custom status enabled, and the person has a status set, the function errors due to no MatrixClient being available. Fixes https://github.com/vector-im/riot-web/issues/9940
This commit is contained in:
parent
b412103f21
commit
6b2dbdf7ba
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
_getStatusMessageUser() {
|
||||
if (!MatrixClientPeg.get()) return null; // We've probably been logged out
|
||||
|
||||
const selfId = MatrixClientPeg.get().getUserId();
|
||||
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
|
||||
if (!otherMember) {
|
||||
|
|
Loading…
Reference in a new issue