about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-08-25 10:47:47 -0500
committerGitHub <noreply@github.com>2023-08-25 08:47:47 -0700
commita0dca81a749269839dc78c1952305ba4d0f5568d (patch)
tree6d694ff8bf72d1b518efabd6d8b59fad06bb9b6e /src
parent953ae9c096a5f32ed0569bb050a172b4a734606c (diff)
downloadvoidsky-a0dca81a749269839dc78c1952305ba4d0f5568d.tar.zst
don't mention own user from composer (#1279)
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/Profile.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index ce437d6cb..0b3745c30 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -92,7 +92,9 @@ export const ProfileScreen = withAuthRequired(
 
     const onPressCompose = React.useCallback(() => {
       track('ProfileScreen:PressCompose')
-      store.shell.openComposer({mention: uiState.profile.handle})
+      const mention =
+        uiState.profile.handle === store.me.handle ? '' : uiState.profile.handle
+      store.shell.openComposer({mention})
     }, [store, track, uiState])
     const onSelectView = React.useCallback(
       (index: number) => {