mirror of
https://github.com/tooot-app/app
synced 2025-01-25 13:48:39 +01:00
Fixed #344
This commit is contained in:
parent
544910f0ed
commit
24d179eee7
@ -29,7 +29,7 @@ const contextMenuInstance = ({
|
|||||||
const { theme } = useTheme()
|
const { theme } = useTheme()
|
||||||
|
|
||||||
const currentInstance = useSelector(getInstanceUrl)
|
const currentInstance = useSelector(getInstanceUrl)
|
||||||
const instance = status.uri && status.uri.split(new RegExp(/\/\/(.*?)\//))[1]
|
const instance = status?.uri && status.uri.split(new RegExp(/\/\/(.*?)\//))[1]
|
||||||
|
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
const mutation = useTimelineMutation({
|
const mutation = useTimelineMutation({
|
||||||
|
@ -70,7 +70,7 @@ const contextMenuStatus = ({
|
|||||||
getInstanceAccount,
|
getInstanceAccount,
|
||||||
(prev, next) => prev.id === next.id
|
(prev, next) => prev.id === next.id
|
||||||
)
|
)
|
||||||
const ownAccount = instanceAccount?.id === status.account.id
|
const ownAccount = instanceAccount?.id === status?.account.id
|
||||||
|
|
||||||
if (ownAccount) {
|
if (ownAccount) {
|
||||||
const accountMenuItems: ContextMenuAction[] = [
|
const accountMenuItems: ContextMenuAction[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user