1
0
mirror of https://github.com/tooot-app/app synced 2024-12-23 16:20:08 +01:00
This commit is contained in:
xmflsct 2023-01-17 12:57:37 +01:00
parent d93c77c4ca
commit fb6a111c55

View File

@ -58,6 +58,7 @@ const menuStatus = ({
const menus: ContextMenu = [] const menus: ContextMenu = []
const [accountId] = useAccountStorage.string('auth.account.id') const [accountId] = useAccountStorage.string('auth.account.id')
const [accountAcct] = useAccountStorage.string('auth.account.acct')
const ownAccount = accountId === status.account?.id const ownAccount = accountId === status.account?.id
const canEditPost = featureCheck('edit_post') const canEditPost = featureCheck('edit_post')
@ -193,7 +194,13 @@ const menuStatus = ({
}), }),
disabled: false, disabled: false,
destructive: false, destructive: false,
hidden: !ownAccount hidden:
!ownAccount &&
queryKey[1].page !== 'Notifications' &&
!status.mentions.find(
mention => mention.acct === accountAcct && mention.username === accountAcct
) &&
!status.muted
}, },
title: t('componentContextMenu:status.mute.action', { title: t('componentContextMenu:status.mute.action', {
defaultValue: 'false', defaultValue: 'false',