+
{ loginButton }
- { toggleCollapse }
);
}
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index f385aacd40..75f2e400b1 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1034,6 +1034,7 @@ export default React.createClass({
{ warnings }
),
+ button: _t("Leave"),
onFinished: (shouldLeave) => {
if (shouldLeave) {
const d = MatrixClientPeg.get().leave(roomId);
@@ -1406,8 +1407,8 @@ export default React.createClass({
// Fire the tinter right on startup to ensure the default theme is applied
// A later sync can/will correct the tint to be the right value for the user
- const color_scheme = SettingsStore.getValue("roomColor");
- Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
+ const colorScheme = SettingsStore.getValue("roomColor");
+ Tinter.tint(colorScheme.primary_color, colorScheme.secondary_color);
},
/**
diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js
index 8e226bdfcf..e20ac54006 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -678,8 +678,8 @@ module.exports = React.createClass({
if (!room) return;
console.log("Tinter.tint from updateTint");
- const color_scheme = SettingsStore.getValue("roomColor", room.roomId);
- Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
+ const colorScheme = SettingsStore.getValue("roomColor", room.roomId);
+ Tinter.tint(colorScheme.primary_color, colorScheme.secondary_color);
},
onAccountData: function(event) {
@@ -694,10 +694,10 @@ module.exports = React.createClass({
if (room.roomId == this.state.roomId) {
const type = event.getType();
if (type === "org.matrix.room.color_scheme") {
- const color_scheme = event.getContent();
+ const colorScheme = event.getContent();
// XXX: we should validate the event
console.log("Tinter.tint from onRoomAccountData");
- Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
+ Tinter.tint(colorScheme.primary_color, colorScheme.secondary_color);
} else if (type === "org.matrix.room.preview_urls" || type === "im.vector.web.settings") {
// non-e2ee url previews are stored in legacy event type `org.matrix.room.preview_urls`
this._updatePreviewUrlVisibility(room);
@@ -1514,6 +1514,7 @@ module.exports = React.createClass({
canPreview={false} error={this.state.roomLoadError}
roomAlias={roomAlias}
spinner={this.state.joining}
+ spinnerState="joining"
inviterName={inviterName}
invitedEmail={invitedEmail}
room={this.state.room}
@@ -1558,6 +1559,7 @@ module.exports = React.createClass({
inviterName={inviterName}
canPreview={false}
spinner={this.state.joining}
+ spinnerState="joining"
room={this.state.room}
/>
@@ -1645,6 +1647,7 @@ module.exports = React.createClass({
onForgetClick={this.onForgetClick}
onRejectClick={this.onRejectThreepidInviteButtonClicked}
spinner={this.state.joining}
+ spinnerState="joining"
inviterName={inviterName}
invitedEmail={invitedEmail}
canPreview={this.state.canPeek}
@@ -1670,7 +1673,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 +1687,11 @@ module.exports = React.createClass({
/>;
}
+ if (MatrixClientPeg.get().isGuest()) {
+ const LoginBox = sdk.getComponent('structures.LoginBox');
+ messageComposer =