Remove prototype code from CreateGroupDialog

The prototype code paths prevent users from ending up here, so we don't need custom code.
pull/21833/head
Travis Ralston 2020-08-26 11:01:58 -06:00
parent c28134eb11
commit 027f263589
1 changed files with 5 additions and 19 deletions

View File

@ -83,25 +83,11 @@ export default createReactClass({
localpart: this.state.groupId,
profile: profile,
}).then((result) => {
if (result.room_id) {
dis.dispatch({
action: 'view_room',
room_id: result.room_id,
});
// Ensure the tag gets selected now that we've created it
dis.dispatch({action: 'deselect_tags'}, true);
dis.dispatch({
action: 'select_tag',
tag: result.group_id,
});
} else {
dis.dispatch({
action: 'view_group',
group_id: result.group_id,
group_is_new: true,
});
}
this.props.onFinished(true);
}).catch((e) => {
this.setState({createError: e});