diff options
author | dan <dan.abramov@gmail.com> | 2024-11-01 16:21:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-01 16:21:18 +0000 |
commit | 125ac5049a0abc4825a6a4a318b1a5c916b8d0ab (patch) | |
tree | 53b13538640ebaa6e3c4e234df0b761bb2d043a2 /src/view/com/composer/Composer.tsx | |
parent | 1c2186bc0306dddeebd039668eea6840285ba534 (diff) | |
download | voidsky-125ac5049a0abc4825a6a4a318b1a5c916b8d0ab.tar.zst |
[Statsig] Track threads (#6057)
* [Statsig] Send thread length * Split events
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 006e0c7dc..3a9114b2f 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -405,6 +405,7 @@ export const ComposePost = ({ ? post.embed.media.images.length : 0, isReply: index > 0 || !!replyTo, + isPartOfThread: thread.posts.length > 1, hasLink: !!post.embed.link, hasQuote: !!post.embed.quote, langs: langPrefs.postLanguage, @@ -413,6 +414,12 @@ export const ComposePost = ({ index++ } } + if (thread.posts.length > 1) { + logEvent('thread:create', { + postCount: thread.posts.length, + isReply: !!replyTo, + }) + } } if (postUri && !replyTo) { emitPostCreated() |