Merge pull request #3065 from matrix-org/travis/fix-logout
Don't refresh custom status on logout
This commit is contained in:
commit
85858c731c
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_getStatusMessageUser() {
|
_getStatusMessageUser() {
|
||||||
|
if (!MatrixClientPeg.get()) return null; // We've probably been logged out
|
||||||
|
|
||||||
const selfId = MatrixClientPeg.get().getUserId();
|
const selfId = MatrixClientPeg.get().getUserId();
|
||||||
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
|
const otherMember = this.props.room.currentState.getMembersExcept([selfId])[0];
|
||||||
if (!otherMember) {
|
if (!otherMember) {
|
||||||
|
|
Loading…
Reference in a new issue