This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +9
-15
lines changed Expand file tree Collapse file tree 5 files changed +9
-15
lines changed Original file line number Diff line number Diff 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" , {
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ import SdkConfig from './SdkConfig';
2626 */
2727
2828const FEATURES = [
29- {
30- id : 'feature_groups' ,
31- name : _td ( "Communities" ) ,
32- } ,
3329 {
3430 id : 'feature_pinning' ,
3531 name : _td ( "Message Pinning" ) ,
Original file line number Diff line number Diff line change 1919import React from 'react' ;
2020import PropTypes from 'prop-types' ;
2121import { MatrixClient } from 'matrix-js-sdk' ;
22- import UserSettingsStore from '../../../UserSettingsStore' ;
2322import FlairStore from '../../../stores/FlairStore' ;
2423import 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
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17+ import React from 'react' ;
1718import sdk from '../../../index' ;
1819import PropTypes from 'prop-types' ;
1920import { _t } from '../../../languageHandler' ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments