change fe to create full group path
@@ -145,9 +145,16 @@ export class NewScreen extends Component {
}
}, () => {
props.setSpinner(true);
+ // we append the ship name here instead of on the back end
+ // if we want a group-channel, we do /~zod/cool-group
+ // if not (DMs) we do /~/~zod/free-chat
+ // this latter should toggle off of a UI affordance that is not here at present
props.api.chatView.create(
- station, state.security, readAud, writeAud, state.allowHistory
+ `/~${window.ship}${station}`, state.security, readAud, writeAud, state.allowHistory
);
+ // this should also be slightly altered to accomodate sending invites to a pre-existing group
+ // perhaps better just to do this on back end
+ // this latter should toggle off of a UI affordance that is not here at present (in designs, though)
aud.forEach((ship) => {
if (ship !== `~${window.ship}`) {
props.api.invite.invite(station, ship);
