diff options
author | Ansh <anshnanda10@gmail.com> | 2023-08-22 11:01:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 11:01:00 -0700 |
commit | 16b265a86164e682486a3d8fa51bfa18d51bb945 (patch) | |
tree | 672a87170b11d9c9a6b7990f5b828da469981062 /src/view/screens/Profile.tsx | |
parent | 3aadc43c896e1c54552387f028a476d7d8ec2d3c (diff) | |
download | voidsky-16b265a86164e682486a3d8fa51bfa18d51bb945.tar.zst |
[APP-834] Allow @ing someone in post directly from profile (#1241)
* setup `initMention` for mobile * setup creating post with profile tagged on web
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index a51fbcf50..ce437d6cb 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -92,8 +92,8 @@ export const ProfileScreen = withAuthRequired( const onPressCompose = React.useCallback(() => { track('ProfileScreen:PressCompose') - store.shell.openComposer({}) - }, [store, track]) + store.shell.openComposer({mention: uiState.profile.handle}) + }, [store, track, uiState]) const onSelectView = React.useCallback( (index: number) => { uiState.setSelectedViewIndex(index) |