messages: yank 1:1 DM invitations
Fixes urbit/landscape#497
@@ -125,8 +125,10 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
);
const ExtraControls = () => {
- if (workspace === '/messages' && group.hidden)
+ if (workspace === '/messages')
return (
+ <>
+ {group.members.size >= 3 ?
<Dropdown
flexShrink={0}
dropWidth='300px'
@@ -142,21 +144,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
color='washedGray'
boxShadow='0px 0px 0px 3px'
>
- {group.members.size >= 3 ? (
<MessageInvite association={association} api={api} />
- ) : null}
- {group.members.size === 2 ? (
- <NewChannel
- api={props.api}
- history={history}
- workspace={{ type: 'messages' }}
- borderRadius={2}
- existingMembers={without(
- Array.from(group.members),
- window.ship
- )}
- />
- ) : null}
</Col>
}
>
@@ -164,6 +152,8 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
+ Add Ship
</Text>
</Dropdown>
+ : null }
+ </>
);
if (canWrite)
return (
