Merge pull request #3065 from matrix-org/travis/fix-logout

Don't refresh custom status on logout
pull/21833/head
Travis Ralston 2019-06-05 07:25:08 -06:00 committed by GitHub
commit 85858c731c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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) {