Log when a chat invite is posted or messaged (#10858)
This commit is contained in:
@@ -1071,6 +1071,20 @@ export const ComposePost = ({
|
||||
isReply: !!replyTo,
|
||||
})
|
||||
}
|
||||
if (postUri) {
|
||||
for (const q of linkQueries) {
|
||||
const resolved = q.data
|
||||
if (
|
||||
resolved?.type === 'chat-invite' &&
|
||||
ChatBskyGroupDefs.isJoinLinkPreviewView(resolved.view)
|
||||
) {
|
||||
ax.metric('groupchat:inviteLink:shared', {
|
||||
convoId: resolved.view.convoId,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (postUri && !replyTo) {
|
||||
emitPostCreated()
|
||||
|
||||
Reference in New Issue
Block a user