Fix Android crash

This commit is contained in:
xmflsct 2022-08-17 22:58:30 +02:00
parent 1620963863
commit 3853066330
1 changed files with 12 additions and 12 deletions

View File

@ -37,20 +37,20 @@ const TimelineHeaderNotification = ({ queryKey, notification }: Props) => {
url: status.url || status.uri
})
: null
const statusOnPress = contextMenuStatus({
const statusOnPress = status && contextMenuStatus({
actions: contextMenuActions,
status: status!,
status: status,
queryKey
})
const accountOnPress = contextMenuAccount({
const accountOnPress = status && contextMenuAccount({
actions: contextMenuActions,
type: 'status',
queryKey,
id: status!.account.id
id: status.account.id
})
const instanceOnPress = contextMenuInstance({
const instanceOnPress = status && contextMenuInstance({
actions: contextMenuActions,
status: status!,
status: status,
queryKey
})