my fork of the bluesky client

Add images to the post in the right order

+3 -3
+3 -3
src/view/com/composer/PhotoCarouselPicker.tsx
··· 44 44 ...IMAGE_PARAMS, 45 45 }) 46 46 const img = await compressIfNeeded(cameraRes, 300000) 47 - onSelectPhotos([img.path, ...selectedPhotos]) 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 - onSelectPhotos([img.path, ...selectedPhotos]) 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 - onSelectPhotos([...result, ...selectedPhotos]) 105 + onSelectPhotos([...selectedPhotos, ...result]) 106 106 }) 107 107 }, [selectedPhotos, onSelectPhotos]) 108 108