mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 15:13:25 +03:00
invites: redirect multiple member DMs to messages
This commit is contained in:
parent
73c0c7c2fe
commit
5db4c1307b
@ -61,7 +61,7 @@ export function InviteItem(props: InviteItemProps) {
|
|||||||
|
|
||||||
if (props.groups?.[resource]?.hidden) {
|
if (props.groups?.[resource]?.hidden) {
|
||||||
const { metadata } = associations.graph[resource];
|
const { metadata } = associations.graph[resource];
|
||||||
if (name.startsWith("dm--")) {
|
if (metadata?.module === 'chat') {
|
||||||
history.push(`/~landscape/messages/resource/${metadata.module}${resource}`);
|
history.push(`/~landscape/messages/resource/${metadata.module}${resource}`);
|
||||||
} else {
|
} else {
|
||||||
history.push(`/~landscape/home/resource/${metadata.module}${resource}`);
|
history.push(`/~landscape/home/resource/${metadata.module}${resource}`);
|
||||||
@ -126,7 +126,7 @@ export function InviteItem(props: InviteItemProps) {
|
|||||||
<Icon display="block" color="blue" icon="Bullet" mr="2" />
|
<Icon display="block" color="blue" icon="Bullet" mr="2" />
|
||||||
<Text mr="1">You are joining a DM with</Text>
|
<Text mr="1">You are joining a DM with</Text>
|
||||||
<Text mr="1" mono>
|
<Text mr="1" mono>
|
||||||
{cite("~hastuc-dibtux")}
|
{cite(`~${invite!.ship}`)}
|
||||||
</Text>
|
</Text>
|
||||||
</Row>
|
</Row>
|
||||||
</JoinSkeleton>
|
</JoinSkeleton>
|
||||||
|
Loading…
Reference in New Issue
Block a user