Fix followed by chat invites (#10873)
This commit is contained in:
@@ -81,7 +81,7 @@ export function Root({
|
|||||||
let action: ChatInviteAction | undefined
|
let action: ChatInviteAction | undefined
|
||||||
if (ChatBskyGroupDefs.isJoinLinkPreviewView(preview)) {
|
if (ChatBskyGroupDefs.isJoinLinkPreviewView(preview)) {
|
||||||
const convoId = preview.convo?.id
|
const convoId = preview.convo?.id
|
||||||
const isFollowing = preview.owner.viewer?.following ?? false
|
const isFollowing = preview.owner.viewer?.followedBy ?? false
|
||||||
const hasRequested = !convoId && preview.viewer?.requestedAt != null
|
const hasRequested = !convoId && preview.viewer?.requestedAt != null
|
||||||
|
|
||||||
if (convoId && convoId === currentConvoId) {
|
if (convoId && convoId === currentConvoId) {
|
||||||
|
|||||||
@@ -285,7 +285,7 @@ function GroupChatJoinDialogContent({code}: {code?: string}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const convoId = joinLinkPreview.convoId
|
const convoId = joinLinkPreview.convoId
|
||||||
const isFollowing = joinLinkPreview.owner.viewer?.following ?? false
|
const isFollowing = joinLinkPreview.owner.viewer?.followedBy ?? false
|
||||||
const hasRequested =
|
const hasRequested =
|
||||||
!joinLinkPreview.convo && joinLinkPreview.viewer?.requestedAt != null
|
!joinLinkPreview.convo && joinLinkPreview.viewer?.requestedAt != null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user