don't mention own user from composer (#1279)

zio/stable
Eric Bailey 2023-08-25 10:47:47 -05:00 committed by GitHub
parent 953ae9c096
commit a0dca81a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) => {