It’s more of a race condition.
From what I see, the draft persists after 2 seconds. It leaves plenty of time to click on the full-screen button before it happens.
To reproduce:
- Upload a file, and send the message.
- Immediately enter or exit the full-screen chat mode
- The file is attached again, even though the message was sent.