mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
chat-js: one line fix to create chat screen to enable managed group creation
This commit is contained in:
parent
f316d0f118
commit
a9231fd5f9
File diff suppressed because one or more lines are too long
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user