Create logged-out view for group chat invites (#10598)
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
@@ -297,8 +297,8 @@ export function InviteLinkDialog({
|
||||
const linkEnabled = joinLink?.enabledStatus === 'enabled'
|
||||
const linkDisabled = joinLink?.enabledStatus === 'disabled'
|
||||
const joinLinkURI = joinLink?.code
|
||||
? `https://bsky.app/chat/${joinLink.code}`
|
||||
: 'https://bsky.app/chat'
|
||||
? `https://bsky.app/c/${joinLink.code}`
|
||||
: 'https://bsky.app/'
|
||||
const createdAt = joinLink ? new Date(joinLink.createdAt) : null
|
||||
const currentOption =
|
||||
whoCanJoinOptions.find(
|
||||
|
||||
@@ -43,14 +43,11 @@ export function MessagesListGroupInfoPanel({
|
||||
},
|
||||
})
|
||||
|
||||
// TODO Enable this once the feature is working end-to-end. -dsb
|
||||
// const joinLink = groupConvo?.details.joinLink
|
||||
const isJoinLinkEnabled = false
|
||||
// (isOwner && groupConvo) ||
|
||||
// (!isOwner && groupConvo && joinLink?.enabledStatus === 'enabled')
|
||||
|
||||
const isOwner = convo.primaryMember?.did === currentAccount?.did
|
||||
|
||||
const isJoinLinkEnabled =
|
||||
isOwner || convo.details.joinLink?.enabledStatus === 'enabled'
|
||||
|
||||
const members = (convo.members ?? []).filter(
|
||||
profile => profile.did !== currentAccount?.did,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user