mirror of https://github.com/tooot-app/app
Clarify my own boosts
This commit is contained in:
parent
7c7c96bc42
commit
e225c5b6bf
|
@ -3,6 +3,7 @@ import { ParseEmojis } from '@components/Parse'
|
||||||
import { useNavigation } from '@react-navigation/native'
|
import { useNavigation } from '@react-navigation/native'
|
||||||
import { StackNavigationProp } from '@react-navigation/stack'
|
import { StackNavigationProp } from '@react-navigation/stack'
|
||||||
import { TabLocalStackParamList } from '@utils/navigation/navigators'
|
import { TabLocalStackParamList } from '@utils/navigation/navigators'
|
||||||
|
import { getAccountStorage } from '@utils/storage/actions'
|
||||||
import { StyleConstants } from '@utils/styles/constants'
|
import { StyleConstants } from '@utils/styles/constants'
|
||||||
import { useTheme } from '@utils/styles/ThemeManager'
|
import { useTheme } from '@utils/styles/ThemeManager'
|
||||||
import React, { useContext } from 'react'
|
import React, { useContext } from 'react'
|
||||||
|
@ -37,8 +38,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
||||||
const onPress = () =>
|
const onPress = () => navigation.push('Tab-Shared-Account', { account })
|
||||||
navigation.push('Tab-Shared-Account', { account })
|
|
||||||
|
|
||||||
const children = () => {
|
const children = () => {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
@ -109,6 +109,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
case 'reblog':
|
case 'reblog':
|
||||||
|
const myself = rest.rootStatus?.account.id === getAccountStorage.string('auth.account.id')
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Icon
|
<Icon
|
||||||
|
@ -121,6 +122,8 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
|
||||||
{content(
|
{content(
|
||||||
isNotification
|
isNotification
|
||||||
? t('shared.actioned.reblog.notification', { name })
|
? t('shared.actioned.reblog.notification', { name })
|
||||||
|
: myself
|
||||||
|
? t('shared.actioned.reblog.myself')
|
||||||
: t('shared.actioned.reblog.default', { name })
|
: t('shared.actioned.reblog.default', { name })
|
||||||
)}
|
)}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
"poll": "A poll you have voted in has ended",
|
"poll": "A poll you have voted in has ended",
|
||||||
"reblog": {
|
"reblog": {
|
||||||
"default": "{{name}} boosted",
|
"default": "{{name}} boosted",
|
||||||
|
"myself": "I boosted",
|
||||||
"notification": "{{name}} boosted your toot"
|
"notification": "{{name}} boosted your toot"
|
||||||
},
|
},
|
||||||
"update": "Reblog has been edited",
|
"update": "Reblog has been edited",
|
||||||
|
|
Loading…
Reference in New Issue