change fe to create full group path

This commit is contained in:
A Arroyo 2020-01-30 12:55:53 -08:00 committed by Logan Allen
parent 6fb731b5c1
commit ff4db6786d

View File

@ -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);