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