removeSelectedAttachment

Removes a selected attachment from the list, when the user taps on the cancel/delete button.

This will update the UI to remove it from the composer component.

Parameters

attachment

The attachment to remove.