Skip to content

Commit dc1720f

Browse files
ds-boycemozzius
authored andcommitted
Fix followed by chat invites (#10873)
1 parent db3e04d commit dc1720f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/components/dms/ChatInvite/Root.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function Root({
8181
let action: ChatInviteAction | undefined
8282
if (ChatBskyGroupDefs.isJoinLinkPreviewView(preview)) {
8383
const convoId = preview.convo?.id
84-
const isFollowing = preview.owner.viewer?.following ?? false
84+
const isFollowing = preview.owner.viewer?.followedBy ?? false
8585
const hasRequested = !convoId && preview.viewer?.requestedAt != null
8686

8787
if (convoId && convoId === currentConvoId) {

‎src/components/intents/GroupChatJoinDialog.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function GroupChatJoinDialogContent({code}: {code?: string}) {
285285
}
286286

287287
const convoId = joinLinkPreview.convoId
288-
const isFollowing = joinLinkPreview.owner.viewer?.following ?? false
288+
const isFollowing = joinLinkPreview.owner.viewer?.followedBy ?? false
289289
const hasRequested =
290290
!joinLinkPreview.convo && joinLinkPreview.viewer?.requestedAt != null
291291

0 commit comments

Comments
 (0)