chat-js: one line fix to create chat screen to enable managed group creation

This commit is contained in:
Logan Allen 2020-02-13 13:11:22 -08:00
parent f316d0f118
commit a9231fd5f9
2 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,6 @@ export class NewScreen extends Component {
constructor(props) {
super(props);
this.state = {
idName: '',
groups: [],
@ -151,7 +150,7 @@ export class NewScreen extends Component {
// we make a path of the form /~zod/cool-group
// if not, we make a path of the form /~/~zod/free-chat
let chatPath = `/~${window.ship}${station}`;
if (!state.createGroup || state.groups.length > 0) {
if (!state.createGroup || state.groups.length === 0) {
chatPath = `/~${chatPath}`;
}
props.api.chatView.create(