This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/components/views/rooms Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -631,6 +631,14 @@ module.exports = React.createClass({
631
631
632
632
var self = this ;
633
633
634
+ let relatedGroupsSection ;
635
+ if ( UserSettingsStore . isFeatureEnabled ( 'feature_groups' ) ) {
636
+ relatedGroupsSection = < RelatedGroupSettings ref = "related_groups"
637
+ roomId = { this . props . room . roomId }
638
+ canSetRelatedGroups = { roomState . mayClientSendStateEvent ( "m.room.related_groups" , cli ) }
639
+ relatedGroupsEvent = { this . props . room . currentState . getStateEvents ( 'm.room.related_groups' , '' ) } /> ;
640
+ }
641
+
634
642
var userLevelsSection ;
635
643
if ( Object . keys ( user_levels ) . length ) {
636
644
userLevelsSection =
@@ -855,10 +863,7 @@ module.exports = React.createClass({
855
863
canonicalAliasEvent = { this . props . room . currentState . getStateEvents ( 'm.room.canonical_alias' , '' ) }
856
864
aliasEvents = { this . props . room . currentState . getStateEvents ( 'm.room.aliases' ) } />
857
865
858
- < RelatedGroupSettings ref = "related_groups"
859
- roomId = { this . props . room . roomId }
860
- canSetRelatedGroups = { roomState . mayClientSendStateEvent ( "m.room.related_groups" , cli ) }
861
- relatedGroupsEvent = { this . props . room . currentState . getStateEvents ( 'm.room.related_groups' , '' ) } />
866
+ { relatedGroupsSection }
862
867
863
868
< UrlPreviewSettings ref = "url_preview_settings" room = { this . props . room } />
864
869
You can’t perform that action at this time.
0 commit comments