1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

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

Don't refresh custom status on logout
This commit is contained in:
Travis Ralston
2019-06-05 07:25:08 -06:00
committed by GitHub

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