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 = {
33
33
// This just uses the react plugin to help eslint known when
34
34
// variables have been used in JSX
35
35
"react/jsx-uses-vars" : "error" ,
36
+ // Don't mark React as unused if we're using JSX
37
+ "react/jsx-uses-react" : "error" ,
36
38
37
39
// bind or arrow function in props causes performance issues
38
40
"react/jsx-no-bind" : [ "error" , {
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ import SdkConfig from './SdkConfig';
26
26
*/
27
27
28
28
const FEATURES = [
29
- {
30
- id : 'feature_groups' ,
31
- name : _td ( "Communities" ) ,
32
- } ,
33
29
{
34
30
id : 'feature_pinning' ,
35
31
name : _td ( "Message Pinning" ) ,
Original file line number Diff line number Diff line change 19
19
import React from 'react' ;
20
20
import PropTypes from 'prop-types' ;
21
21
import { MatrixClient } from 'matrix-js-sdk' ;
22
- import UserSettingsStore from '../../../UserSettingsStore' ;
23
22
import FlairStore from '../../../stores/FlairStore' ;
24
23
import dis from '../../../dispatcher' ;
25
24
@@ -83,9 +82,7 @@ export default class Flair extends React.Component {
83
82
84
83
componentWillMount ( ) {
85
84
this . _unmounted = false ;
86
- if ( UserSettingsStore . isFeatureEnabled ( 'feature_groups' ) && FlairStore . groupSupport ( ) ) {
87
- this . _generateAvatars ( ) ;
88
- }
85
+ this . _generateAvatars ( ) ;
89
86
this . context . matrixClient . on ( 'RoomState.events' , this . onRoomStateEvents ) ;
90
87
}
91
88
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
+ import React from 'react' ;
17
18
import sdk from '../../../index' ;
18
19
import PropTypes from 'prop-types' ;
19
20
import { _t } from '../../../languageHandler' ;
Original file line number Diff line number Diff line change @@ -671,13 +671,11 @@ module.exports = React.createClass({
671
671
672
672
const self = this ;
673
673
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
+ /> ;
681
679
682
680
let userLevelsSection ;
683
681
if ( Object . keys ( user_levels ) . length ) {
You can’t perform that action at this time.
0 commit comments