mirror of
https://github.com/tooot-app/app
synced 2024-12-23 08:09:18 +01:00
Fix #664
This commit is contained in:
parent
d93c77c4ca
commit
fb6a111c55
@ -58,6 +58,7 @@ const menuStatus = ({
|
||||
const menus: ContextMenu = []
|
||||
|
||||
const [accountId] = useAccountStorage.string('auth.account.id')
|
||||
const [accountAcct] = useAccountStorage.string('auth.account.acct')
|
||||
const ownAccount = accountId === status.account?.id
|
||||
|
||||
const canEditPost = featureCheck('edit_post')
|
||||
@ -193,7 +194,13 @@ const menuStatus = ({
|
||||
}),
|
||||
disabled: 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', {
|
||||
defaultValue: 'false',
|
||||
|
Loading…
Reference in New Issue
Block a user