Skip to content

Commit

Permalink
Revert "fix(Sharing): Show correct sharing status by user"
Browse files Browse the repository at this point in the history
This reverts commit 861f4dd.
  • Loading branch information
Merkur39 committed Feb 3, 2025
1 parent 84daf86 commit 547a458
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const MemberRecipientLite = ({ recipient, isOwner, ...props }) => {
const { t } = useI18n()
const client = useClient()

const recipientOwner = recipient.status === 'owner'
const isMe =
(isOwner && recipientOwner) || recipient.instance === client.options.uri
(isOwner && recipient.status === 'owner') ||
recipient.instance === client.options.uri

return (
<ListItem size="small" ellipsis>
Expand All @@ -43,7 +43,7 @@ const MemberRecipientLite = ({ recipient, isOwner, ...props }) => {
}
/>
<Typography className="u-flex-shrink-0" variant="body2">
{recipientOwner
{isMe
? t(`Share.status.${recipient.status}`).toLowerCase()
: t(`Share.type.${recipient.type ?? 'one-way'}`).toLowerCase()}
</Typography>
Expand Down

0 comments on commit 547a458

Please sign in to comment.