tangled
alpha
login
or
join now
nasso.dev
/
bsky-social-app
0
fork
atom
my fork of the bluesky client
0
fork
atom
overview
issues
pulls
pipelines
Add images to the post in the right order
Paul Frazee
3 years ago
61682d58
bccc8a64
+3
-3
1 changed file
expand all
collapse all
unified
split
src
view
com
composer
PhotoCarouselPicker.tsx
+3
-3
src/view/com/composer/PhotoCarouselPicker.tsx
···
44
44
...IMAGE_PARAMS,
45
45
})
46
46
const img = await compressIfNeeded(cameraRes, 300000)
47
47
-
onSelectPhotos([img.path, ...selectedPhotos])
47
47
+
onSelectPhotos([...selectedPhotos, img.path])
48
48
} catch (err: any) {
49
49
// ignore
50
50
store.log.warn('Error using camera', err)
···
68
68
height,
69
69
})
70
70
const img = await compressIfNeeded(cropperRes, 300000)
71
71
-
onSelectPhotos([img.path, ...selectedPhotos])
71
71
+
onSelectPhotos([...selectedPhotos, img.path])
72
72
} catch (err: any) {
73
73
// ignore
74
74
store.log.warn('Error selecting photo', err)
···
102
102
const finalImg = await compressIfNeeded(cropperRes, 300000)
103
103
result.push(finalImg.path)
104
104
}
105
105
-
onSelectPhotos([...result, ...selectedPhotos])
105
105
+
onSelectPhotos([...selectedPhotos, ...result])
106
106
})
107
107
}, [selectedPhotos, onSelectPhotos])
108
108