Send attachments affordance exposed by clicking on the attachment button
Clicking 'attachment button' opens OS file picker that allows user to choose any file type (restrict to files under 5MB)
If file chosen is over 5MB, display "Please choose attachments smaller than 5 MB" warning and disable send button
If file chosen is 5MB or smaller, user has the option to cancel or send file
Image (png, jpg, gif, webp) files are auto-rendered in the UI
All non-image files are shown as a generic attachment with the following info: file name, file size (user should be able download file - e.g. via a right click and save)
SHOULD HAVE:
Provide a way for user to mark conversations as trusted so attachments are auto-rendered by default for these conversations. The option to trust a conversations is present at the top of conversation view (under the 'to' bar). User must be able to 'untrust' trusted conversations via settings.
For untrusted conversations, user can load individual attachments by clicking 'load' button on the particular attachment
NICE TO HAVE:
All the attachment features in design such as gif picker, voice note recording, video player, toolbar, bring-your-own storage via web3storage token, etc.
All attachments in the message list UI have a button to download. This button is displayed on hover. Hover is activated when pointer is anywhere in the attachment/image card in the message list UI
A sub issue of https://github.com/xmtp-labs/xmtp-inbox-web/issues/209
Just support image attachments.
[Pasting requirements from parent issue]
MUST HAVE:
SHOULD HAVE:
NICE TO HAVE: