mirror of
https://github.com/tooot-app/app
synced 2025-04-25 15:38:42 +02:00
Fix Android sharing
This commit is contained in:
parent
bfd9e8d50c
commit
51165e47ea
@ -166,9 +166,6 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
|
|||||||
}
|
}
|
||||||
| { data: string | string[]; mimeType: string }
|
| { data: string | string[]; mimeType: string }
|
||||||
) => {
|
) => {
|
||||||
if (Platform.OS === 'android') {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (instanceActive < 0) {
|
if (instanceActive < 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -233,14 +230,18 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// case 'android':
|
case 'android':
|
||||||
// if (!item.mimeType) {
|
if (!item.mimeType) {
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
// for (const d of item.data) {
|
if (Array.isArray(item.data)) {
|
||||||
// filterMedia({ uri: d, mime: item.mimeType })
|
for (const d of item.data) {
|
||||||
// }
|
filterMedia({ uri: d, mime: item.mimeType })
|
||||||
// break
|
}
|
||||||
|
} else {
|
||||||
|
filterMedia({ uri: item.data, mime: item.mimeType })
|
||||||
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!text && !media.length) {
|
if (!text && !media.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user