Improvements to auto-mentioning users from their profiles (#1556)
* Don't automatically mention users with invalid handles * don't mention when using did urls * resolve profile from cache * a little clearer --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
parent
42723dfaf6
commit
6325eff938
2 changed files with 22 additions and 6 deletions
|
@ -91,7 +91,10 @@ export const ProfileScreen = withAuthRequired(
|
|||
const onPressCompose = React.useCallback(() => {
|
||||
track('ProfileScreen:PressCompose')
|
||||
const mention =
|
||||
uiState.profile.handle === store.me.handle ? '' : uiState.profile.handle
|
||||
uiState.profile.handle === store.me.handle ||
|
||||
uiState.profile.handle === 'handle.invalid'
|
||||
? undefined
|
||||
: uiState.profile.handle
|
||||
store.shell.openComposer({mention})
|
||||
}, [store, track, uiState])
|
||||
const onSelectView = React.useCallback(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue