+
{ loginButton }
- { toggleCollapse }
);
}
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index 5dbafbd2a7..f3f188df81 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -1035,6 +1035,7 @@ export default React.createClass({
{ warnings }
),
+ button: _t("Leave"),
onFinished: (shouldLeave) => {
if (shouldLeave) {
const d = MatrixClientPeg.get().leave(roomId);
@@ -1407,8 +1408,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 5d51b9f9a0..53644af78f 100644
--- a/src/components/structures/RoomView.js
+++ b/src/components/structures/RoomView.js
@@ -681,8 +681,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) {
@@ -697,10 +697,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);
@@ -1517,6 +1517,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}
@@ -1561,6 +1562,7 @@ module.exports = React.createClass({
inviterName={inviterName}
canPreview={false}
spinner={this.state.joining}
+ spinnerState="joining"
room={this.state.room}
/>
@@ -1648,6 +1650,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}
@@ -1673,7 +1676,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 =
@@ -1687,6 +1690,11 @@ module.exports = React.createClass({
/>;
}
+ if (MatrixClientPeg.get().isGuest()) {
+ const LoginBox = sdk.getComponent('structures.LoginBox');
+ messageComposer =