diff --git a/src/components/views/elements/EditableItemList.js b/src/components/views/elements/EditableItemList.js
index f4c016d9f2..7d96b1fd20 100644
--- a/src/components/views/elements/EditableItemList.js
+++ b/src/components/views/elements/EditableItemList.js
@@ -76,6 +76,7 @@ const EditableItem = React.createClass({
},
});
+// TODO: Make this use the new Field element
module.exports = React.createClass({
displayName: 'EditableItemList',
diff --git a/src/components/views/room_settings/RelatedGroupSettings.js b/src/components/views/room_settings/RelatedGroupSettings.js
index 4bad5ca806..91a538ca93 100644
--- a/src/components/views/room_settings/RelatedGroupSettings.js
+++ b/src/components/views/room_settings/RelatedGroupSettings.js
@@ -119,7 +119,6 @@ module.exports = React.createClass({
const localDomain = this.context.matrixClient.getDomain();
const EditableItemList = sdk.getComponent('elements.EditableItemList');
return
-
{ _t('Flair') }
{
// TODO: Live modification of aliases?
if (!this.refs.aliasSettings) return;
this.refs.aliasSettings.saveSettings();
};
+ _saveGroups = (e) => {
+ // TODO: Live modification of aliases?
+ if (!this.refs.flairSettings) return;
+ this.refs.flairSettings.saveSettings();
+ };
+
render() {
const AliasSettings = sdk.getComponent("room_settings.AliasSettings");
+ const RelatedGroupSettings = sdk.getComponent("room_settings.RelatedGroupSettings");
const client = MatrixClientPeg.get();
const room = client.getRoom(this.props.roomId);
@@ -44,6 +62,9 @@ export default class GeneralRoomSettingsTab extends React.Component {
const canonicalAliasEv = room.currentState.getStateEvents("m.room.canonical_alias", '');
const aliasEvents = room.currentState.getStateEvents("m.room.aliases");
+ const canChangeGroups = room.currentState.mayClientSendStateEvent("m.room.related_groups", client);
+ const groupsEvent = room.currentState.getStateEvents("m.room.related_groups", "");
+
return (
{_t("General")}
@@ -60,6 +81,16 @@ export default class GeneralRoomSettingsTab extends React.Component {
{_t("Save")}
+
+ {_t("Flair")}
+
);
}