Merge pull request #3727 from urbit/la/fix-dms

interface: fix DM creation to give group permissions properly
This commit is contained in:
matildepark 2020-10-15 13:33:13 -04:00 committed by GitHub
commit a3c193fb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,6 @@ interface NewChannelProps {
group?: string;
}
const EMPTY_INVITE_POLICY = { invite: { pending: [] } };
export function NewChannel(props: NewChannelProps & RouteComponentProps) {
const { history, api, group } = props;
@ -64,7 +63,7 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
description,
appPath,
groupPath,
EMPTY_INVITE_POLICY,
{ invite: { pending: ships.map((s) => `~${s}`) } },
ships.map((s) => `~${s}`),
true,
false
@ -87,7 +86,7 @@ export function NewChannel(props: NewChannelProps & RouteComponentProps) {
resId,
name,
description,
EMPTY_INVITE_POLICY,
{ invite: { pending: ships.map((s) => `~${s}`) } },
"link"
);
}