Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0958689

Browse files
authored
Merge pull request #1398 from matrix-org/luke/fix-ugly-manage-integs-button
Only show the integ management button if user is joined
2 parents 09e6ea0 + caaf5cc commit 0958689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/elements/ManageIntegsButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class ManageIntegsButton extends React.Component {
4848
this.forceUpdate();
4949
}, (err) => {
5050
this.setState({ scalarError: err});
51-
console.error(err);
51+
console.error('Error whilst initialising scalarClient for ManageIntegsButton', err);
5252
});
5353
}
5454
}

src/components/views/rooms/RoomHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ module.exports = React.createClass({
324324

325325
let rightRow;
326326
let manageIntegsButton;
327-
if(this.props.room && this.props.room.roomId) {
327+
if(this.props.room && this.props.room.roomId && this.props.inRoom) {
328328
manageIntegsButton = <ManageIntegsButton
329329
roomId={this.props.room.roomId}
330330
/>;

0 commit comments

Comments
 (0)