about summary refs log tree commit diff
path: root/src/state/muted-threads.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/muted-threads.tsx')
-rw-r--r--src/state/muted-threads.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/muted-threads.tsx b/src/state/muted-threads.tsx
index 2b3a7de6a..84a717eb7 100644
--- a/src/state/muted-threads.tsx
+++ b/src/state/muted-threads.tsx
@@ -1,5 +1,6 @@
 import React from 'react'
 import * as persisted from '#/state/persisted'
+import {track} from '#/lib/analytics/analytics'
 
 type StateContext = persisted.Schema['mutedThreads']
 type ToggleContext = (uri: string) => boolean
@@ -19,9 +20,11 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
         if (arr.includes(uri)) {
           arr = arr.filter(v => v !== uri)
           muted = false
+          track('Post:ThreadUnmute')
         } else {
           arr = arr.concat([uri])
           muted = true
+          track('Post:ThreadMute')
         }
         persisted.write('mutedThreads', arr)
         return arr