-
Notifications
You must be signed in to change notification settings - Fork 11
Description
part of #275
When I open a message, currently it doesn't show a list of attachments on that message.
Please list attachments in message view, and their sizes. Downloading or decrypting doesn't need to be implemented yet (clicking each attachment will produce a toast "Downloading attachments not implemented yet".
The Core.parseDecryptMsg returns an array of MsgBlock of various types, and one textual representation of the message body. Currently we only look at textual representation of the message body text but not actual individual blocks.
You'll want to look at decrypted.blocks to find the ones of the following types: plainAtt, encryptedAtt, decryptedAtt and render them below. Use our Android app for rough visual guidance. Attachments that are encrypted (encryptedAtt, decryptedAtt) should be styled in green similar to how encrypted text is green. plainAtt should be styled in a neutral color.
When opening a (draft) PR please add a screenshot to the description as well.
The functionality should be accompanied with meaningful tests - for guidance you can ask me (general approach) and @Kharchevskyi (specific code questions).