[native] Disable ImagePasteModal send button after first press
Summary:
Disable the button after it's pressed for the first time to prevent issue with multiple sends.
Also moved inputState.sendMultimediaMessage(selection, threadInfo); to an IIFE.
Test Plan:
- Copy image to clipboard
- Paste image into TextInput to pull up ImagePasteModal
- Try hitting the send button in quick succession
- Make sure that the image only gets sent once
Reviewers: palys-swm, def-au1t, varun, benschac, ashoat
Reviewed By: ashoat
Subscribers: ashoat, Adrian, karol-bisztyga
Differential Revision: https://phabricator.ashoat.com/D3424