Merge pull request #2314 from urbit/la-group-create

chat-js: fixed group creation
This commit is contained in:
Logan 2020-02-19 11:23:52 -08:00 committed by GitHub
commit 6d86c44f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 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(