dm3 icon indicating copy to clipboard operation
dm3 copied to clipboard

CHANGE: Attachment handling according specification (change)

Open steffenkux opened this issue 1 year ago • 0 comments

Current situation

Attachments are added as an array of URIs as defined in the first version of the spec. This makes problems when adding files to the message as the file name gets lost.

Requirements

Change the array of strings (URIs) into an array of attachment structs which contains a name entry and a data entry (containing the current URI). The UI must use the name entry to store the file name to provide a convenient behavior for the user (name doesn't change).

Tasks

  • [ ] Change API for Attachment handling
  • [ ] Change UI (messenger-widget) to handle file names correctly
  • [ ] Check storage definitions
  • [ ] Testing

Resources

https://specification.dm3.network/base-protocol/message-transport-protocol-dm3mtp/message-transport#attachments

steffenkux avatar Feb 23 '24 14:02 steffenkux