ResourceSkeleton: render group DM members

This commit is contained in:
Matilde Park 2021-02-25 13:22:13 -05:00
parent cc6adb3ffd
commit a666ce902b

View File

@ -46,11 +46,13 @@ export function ResourceSkeleton(props: ResourceSkeletonProps): ReactElement {
? getItemTitle(association)
: association?.metadata?.title;
let recipient = false;
let recipient = "";
if (urbitOb.isValidPatp(title)) {
recipient = title;
title = (props.contacts?.[title]?.nickname) ? props.contacts[title].nickname : title;
} else {
recipient = Array.from(group.members).map(e => `~${e}`).join(", ")
}
const [, , ship, resource] = rid.split('/');