Optimistic image upload
Describe the bug You can't send a message / image if there is an image uploading
To Reproduce Try and upload an image and send it to chat. Even compressed this takes ~5 seconds.
Expected behavior Should optimistically send image to chat and upload in the background (like iMessage or any other chat tool)
Hey @bscharfstein we are planning to implement this once offline support for react-native sdk is published (which is still couple of months away from publishing)
why do you need offline support to implement this?
@bscharfstein maybe I misunderstood the question/request. But could you please shade more details on what UX are you expecting exactly?
Sure, happy to. *UX today When I try to send an image, the UI blocks me from pressing the send button (and thus sending any other messages) until the image has been uploaded to the server.
*Desired UX When I try to send an image, it immediately is put in chat on my screen even before it is uploaded. I can continue to send other messages.
I've attached a video of how this works on iMessages. Notice that the image is not marked as "delivered" for a few seconds. I'd expect stream could do the same -- continue to upload the image and just not mark it as delivered until it is...but allow me to compose and send other messages in the meantime. I understand this might lead to 'unsent' images but I'd prefer that to the feelingly broken (locked) UX today.

can you add an option to resize the image?
Hi @bscharfstein ,
Thanks for the details
*Desired UX When I try to send an image, it immediately is put in chat on my screen even before it is uploaded. I can continue to send other messages.
The problem here is, if I put the message on chat screen and if the user leaves chat screen (component unmounts) before the message is actually sent to server, it might be confusing. Since enduser saw the message in sending state already. Once we have offline storage, we can simply put this message in offline storage and wait for attachment to upload and then sync it with server.
Hi @manhncse02926
can you add an option to resize the image?
please check this example for cropping/resizing - https://github.com/GetStream/stream-chat-react-native/blob/master/docs/cookbook.md#image-upload-takes-too-long-how-can-i-fix-it
@vishalnarkhede understood. I actually still think this would be better than it is today although I understand that for many users it would not.
One relatively easy solution would be to pop a modal if a user tries to navigate away telling them that they need to wait or else not send their message. Something like "Your photo has not yet been delivered. If you leave this screen you'll need to resend later".