1
0
mirror of https://github.com/tooot-app/app synced 2025-03-03 11:07:52 +01:00

Fix Android sharing

This commit is contained in:
xmflsct 2022-11-20 22:42:09 +01:00
parent bfd9e8d50c
commit 51165e47ea

View File

@ -166,9 +166,6 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
}
| { data: string | string[]; mimeType: string }
) => {
if (Platform.OS === 'android') {
return
}
if (instanceActive < 0) {
return
}
@ -233,14 +230,18 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
}
}
break
// case 'android':
// if (!item.mimeType) {
// return
// }
// for (const d of item.data) {
// filterMedia({ uri: d, mime: item.mimeType })
// }
// break
case 'android':
if (!item.mimeType) {
return
}
if (Array.isArray(item.data)) {
for (const d of item.data) {
filterMedia({ uri: d, mime: item.mimeType })
}
} else {
filterMedia({ uri: item.data, mime: item.mimeType })
}
break
}
if (!text && !media.length) {