chat-js: fixed group creation

This commit is contained in:
Logan Allen 2020-02-18 18:05:12 -08:00
parent 5b1c3f3cca
commit 688f9c33a1
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -150,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(