1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Also Android cannot read from ID, using index instead
This commit is contained in:
Zhiyuan Zheng
2022-06-14 23:32:35 +02:00
parent 85039db137
commit 236ccbe45d
9 changed files with 274 additions and 296 deletions

View File

@ -47,6 +47,7 @@ const TimelineContextMenu: React.FC<Props & ContextMenuProps> = ({
})
const accountOnPress = contextMenuAccount({
actions,
type: 'status',
queryKey,
rootQueryKey,
id: status.account.id
@ -62,14 +63,14 @@ const TimelineContextMenu: React.FC<Props & ContextMenuProps> = ({
<ContextMenuContext.Provider value={actions}>
<ContextMenu
actions={actions}
onPress={({ nativeEvent: { id } }) => {
onPress={({ nativeEvent: { index } }) => {
for (const on of [
shareOnPress,
statusOnPress,
accountOnPress,
instanceOnPress
]) {
on && on(id)
on && on(index)
}
}}
children={children}