+
{ loginButton }
- { toggleCollapse }
);
}
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 32121d6de5..62c596e939 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -1669,7 +1669,7 @@ module.exports = React.createClass({
let messageComposer, searchInfo;
const canSpeak = (
// joined and not showing search results
- myMembership == 'join' && !this.state.searchResults
+ myMembership === 'join' && !this.state.searchResults
);
if (canSpeak) {
messageComposer =
@@ -1683,6 +1683,11 @@ module.exports = React.createClass({
/>;
}
+ if (MatrixClientPeg.get().isGuest()) {
+ const LoginBox = sdk.getComponent('structures.LoginBox');
+ messageComposer =
;
+ }
+
// TODO: Why aren't we storing the term/scope/count in this format
// in this.state if this is what RoomHeader desires?
if (this.state.searchResults) {