Log when a chat invite is posted or messaged (#10858)
This commit is contained in:
@@ -30,6 +30,7 @@ import {
|
||||
AppBskyRichtextFacet,
|
||||
ChatBskyConvoDefs,
|
||||
type ChatBskyEmbedJoinLink,
|
||||
ChatBskyGroupDefs,
|
||||
RichText,
|
||||
} from '@atproto/api'
|
||||
import {useScrollEdgeEffectRef} from '@bsky.app/expo-scroll-edge-effect'
|
||||
@@ -478,6 +479,15 @@ export function MessagesList({
|
||||
isOwner: convoState.convo.primaryMember?.did === currentAccount?.did,
|
||||
})
|
||||
}
|
||||
if (
|
||||
embedView?.$type === 'chat.bsky.embed.joinLink#view' &&
|
||||
ChatBskyGroupDefs.isJoinLinkPreviewView(embedView.joinLinkPreview)
|
||||
) {
|
||||
ax.metric('groupchat:inviteLink:shared', {
|
||||
convoId: embedView.joinLinkPreview.convoId,
|
||||
method: 'dm',
|
||||
})
|
||||
}
|
||||
},
|
||||
[
|
||||
agent,
|
||||
|
||||
Reference in New Issue
Block a user