Remove constraint on groups being local, remove logging
This commit is contained in:
parent
7be5e685f7
commit
02e7287123
1 changed files with 1 additions and 3 deletions
|
@ -64,8 +64,7 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
validateGroupId: function(groupId) {
|
validateGroupId: function(groupId) {
|
||||||
const localDomain = this.context.matrixClient.getDomain();
|
if (!GROUP_ID_REGEX.test(groupId)) {
|
||||||
if (!GROUP_ID_REGEX.test(groupId) || !groupId.endsWith(localDomain)) {
|
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
Modal.createTrackedDialog('Invalid related group ID', '', ErrorDialog, {
|
Modal.createTrackedDialog('Invalid related group ID', '', ErrorDialog, {
|
||||||
title: _t('Invalid group ID'),
|
title: _t('Invalid group ID'),
|
||||||
|
@ -108,7 +107,6 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
const localDomain = this.context.matrixClient.getDomain();
|
const localDomain = this.context.matrixClient.getDomain();
|
||||||
const EditableItemList = sdk.getComponent('elements.EditableItemList');
|
const EditableItemList = sdk.getComponent('elements.EditableItemList');
|
||||||
console.info(this.state.newGroupsList);
|
|
||||||
return (<div>
|
return (<div>
|
||||||
<h3>{ _t('Related Groups') }</h3>
|
<h3>{ _t('Related Groups') }</h3>
|
||||||
<EditableItemList
|
<EditableItemList
|
||||||
|
|
Loading…
Reference in a new issue