Clarify my own boosts

This commit is contained in:
xmflsct 2023-02-03 13:57:11 +01:00
parent 7c7c96bc42
commit e225c5b6bf
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import { ParseEmojis } from '@components/Parse'
import { useNavigation } from '@react-navigation/native'
import { StackNavigationProp } from '@react-navigation/stack'
import { TabLocalStackParamList } from '@utils/navigation/navigators'
import { getAccountStorage } from '@utils/storage/actions'
import { StyleConstants } from '@utils/styles/constants'
import { useTheme } from '@utils/styles/ThemeManager'
import React, { useContext } from 'react'
@ -37,8 +38,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
/>
)
const onPress = () =>
navigation.push('Tab-Shared-Account', { account })
const onPress = () => navigation.push('Tab-Shared-Account', { account })
const children = () => {
switch (action) {
@ -109,6 +109,7 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
</>
)
case 'reblog':
const myself = rest.rootStatus?.account.id === getAccountStorage.string('auth.account.id')
return (
<>
<Icon
@ -121,6 +122,8 @@ const TimelineActioned: React.FC<Props> = ({ action, isNotification, ...rest })
{content(
isNotification
? t('shared.actioned.reblog.notification', { name })
: myself
? t('shared.actioned.reblog.myself')
: t('shared.actioned.reblog.default', { name })
)}
</Pressable>

View File

@ -33,6 +33,7 @@
"poll": "A poll you have voted in has ended",
"reblog": {
"default": "{{name}} boosted",
"myself": "I boosted",
"notification": "{{name}} boosted your toot"
},
"update": "Reblog has been edited",