messages: always mono for DM recipients, show description

fixes urbit/landscape#623
This commit is contained in:
James Acklin 2021-05-31 19:49:36 -04:00
parent 16311deee3
commit 1f6a216f28

View File

@ -144,7 +144,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
const Description = () => (
<TruncatedText
display={['none','inline']}
mono={workspace === '/messages' && !urbitOb.isValidPatp(title)}
mono={workspace === '/messages' && !association?.metadata?.description}
color='gray'
mb={0}
minWidth={0}
@ -152,7 +152,7 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
flexShrink={1}
disableRemoteContent
>
{workspace === '/messages'
{workspace === '/messages' && !association?.metadata?.description
? recipient
: association?.metadata?.description}
</TruncatedText>