1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

Only stop peeking if at some point we were joined

This commit is contained in:
Luke Barnard
2017-06-15 14:21:23 +01:00
parent 5c37d591b0
commit cc46fd34d7

View File

@ -259,7 +259,8 @@ module.exports = React.createClass({
} }
}).done(); }).done();
} }
} else { } else if (room) {
// Stop peeking because we have joined this room previously
MatrixClientPeg.get().stopPeeking(); MatrixClientPeg.get().stopPeeking();
this.setState({ this.setState({
unsentMessageError: this._getUnsentMessageError(room), unsentMessageError: this._getUnsentMessageError(room),