mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
ResourceSkeleton: render group DM members
This commit is contained in:
parent
cc6adb3ffd
commit
a666ce902b
@ -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('/');
|
||||
|
Loading…
Reference in New Issue
Block a user