Text field cleared when pending media is sent

If you send an image or other file and start typing a message right away, the text field gets cleared when the media finishes sending. This can be particularly frustrating if you’re sending a larger file and start typing your next message while waiting for it to compress/send.

a7cac06cab58e7780b4e35de9ab2479de34441ee