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

Merge pull request #2055 from matrix-org/bwindels/stop-peeking-fix

Fix not stopping to peek when navigating away from peeked room
This commit is contained in:
David Baker
2018-07-16 13:33:13 +01:00
committed by GitHub

View File

@@ -299,12 +299,12 @@ module.exports = React.createClass({
throw err; throw err;
} }
}); });
}
} else if (room) { } else if (room) {
// Stop peeking because we have joined this room previously // Stop peeking because we have joined this room previously
MatrixClientPeg.get().stopPeeking(); MatrixClientPeg.get().stopPeeking();
this.setState({isPeeking: false}); this.setState({isPeeking: false});
} }
}
}, },
_shouldShowApps: function(room) { _shouldShowApps: function(room) {