rebuilt with fixes
This commit is contained in:
+3
-2
@@ -9611,9 +9611,10 @@ class NewTopicById extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCom
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
if (this.state.groupId) {
|
if (this.state.groupId) {
|
||||||
var name = this.state.groupId.trim();
|
const name = this.state.groupId.trim();
|
||||||
|
const prefix = name.substr(0, 3);
|
||||||
|
|
||||||
if (name.length > 3 && (name.substr(0, 3) == 'usr' || name.substr(0, 3) == 'grp')) {
|
if (name.length > 3 && ['usr', 'grp', 'chn'].includes(prefix)) {
|
||||||
this.props.onSubmit(name);
|
this.props.onSubmit(name);
|
||||||
} else {
|
} else {
|
||||||
this.props.onError(this.props.intl.formatMessage(messages.invalid_id), 'err');
|
this.props.onError(this.props.intl.formatMessage(messages.invalid_id), 'err');
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user