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

Commit 477133a

Browse files
committed
Merge branch 'develop' into release-v0.11.0
2 parents 07b6c55 + b3ddec4 commit 477133a

File tree

5 files changed

+9
-15
lines changed

5 files changed

+9
-15
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = {
3333
// This just uses the react plugin to help eslint known when
3434
// variables have been used in JSX
3535
"react/jsx-uses-vars": "error",
36+
// Don't mark React as unused if we're using JSX
37+
"react/jsx-uses-react": "error",
3638

3739
// bind or arrow function in props causes performance issues
3840
"react/jsx-no-bind": ["error", {

src/UserSettingsStore.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ import SdkConfig from './SdkConfig';
2626
*/
2727

2828
const FEATURES = [
29-
{
30-
id: 'feature_groups',
31-
name: _td("Communities"),
32-
},
3329
{
3430
id: 'feature_pinning',
3531
name: _td("Message Pinning"),

src/components/views/elements/Flair.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import React from 'react';
2020
import PropTypes from 'prop-types';
2121
import {MatrixClient} from 'matrix-js-sdk';
22-
import UserSettingsStore from '../../../UserSettingsStore';
2322
import FlairStore from '../../../stores/FlairStore';
2423
import dis from '../../../dispatcher';
2524

@@ -83,9 +82,7 @@ export default class Flair extends React.Component {
8382

8483
componentWillMount() {
8584
this._unmounted = false;
86-
if (UserSettingsStore.isFeatureEnabled('feature_groups') && FlairStore.groupSupport()) {
87-
this._generateAvatars();
88-
}
85+
this._generateAvatars();
8986
this.context.matrixClient.on('RoomState.events', this.onRoomStateEvents);
9087
}
9188

src/components/views/elements/GroupsButton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
import React from 'react';
1718
import sdk from '../../../index';
1819
import PropTypes from 'prop-types';
1920
import { _t } from '../../../languageHandler';

src/components/views/rooms/RoomSettings.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,11 @@ module.exports = React.createClass({
671671

672672
const self = this;
673673

674-
let relatedGroupsSection;
675-
if (UserSettingsStore.isFeatureEnabled('feature_groups')) {
676-
relatedGroupsSection = <RelatedGroupSettings ref="related_groups"
677-
roomId={this.props.room.roomId}
678-
canSetRelatedGroups={roomState.mayClientSendStateEvent("m.room.related_groups", cli)}
679-
relatedGroupsEvent={this.props.room.currentState.getStateEvents('m.room.related_groups', '')} />;
680-
}
674+
const relatedGroupsSection = <RelatedGroupSettings ref="related_groups"
675+
roomId={this.props.room.roomId}
676+
canSetRelatedGroups={roomState.mayClientSendStateEvent("m.room.related_groups", cli)}
677+
relatedGroupsEvent={this.props.room.currentState.getStateEvents('m.room.related_groups', '')}
678+
/>;
681679

682680
let userLevelsSection;
683681
if (Object.keys(user_levels).length) {

0 commit comments

Comments
 (0)