+
{ loginButton }
- { toggleCollapse }
);
}
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 8e226bdfcf..23c2980f24 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -1670,7 +1670,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 =
@@ -1684,6 +1684,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) {