From 02e7287123b9fe70e2baef9bd581e5ab2132077c Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 4 Oct 2017 14:08:31 +0100 Subject: [PATCH] Remove constraint on groups being local, remove logging --- src/components/views/room_settings/RelatedGroupSettings.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/views/room_settings/RelatedGroupSettings.js b/src/components/views/room_settings/RelatedGroupSettings.js index 942251e54b..d3be2c88b5 100644 --- a/src/components/views/room_settings/RelatedGroupSettings.js +++ b/src/components/views/room_settings/RelatedGroupSettings.js @@ -64,8 +64,7 @@ module.exports = React.createClass({ }, validateGroupId: function(groupId) { - const localDomain = this.context.matrixClient.getDomain(); - if (!GROUP_ID_REGEX.test(groupId) || !groupId.endsWith(localDomain)) { + if (!GROUP_ID_REGEX.test(groupId)) { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createTrackedDialog('Invalid related group ID', '', ErrorDialog, { title: _t('Invalid group ID'), @@ -108,7 +107,6 @@ module.exports = React.createClass({ render: function() { const localDomain = this.context.matrixClient.getDomain(); const EditableItemList = sdk.getComponent('elements.EditableItemList'); - console.info(this.state.newGroupsList); return (

{ _t('Related Groups') }