Skip to content

rich text signed messages - send out with cid instead of img tags? #3281

Description

@tomholub
    if (choices.richtext && !choices.encrypt && !choices.sign && msg.body['text/html']) {
      // extract inline images of plain rich-text messages (#3256)
      // todo - also apply to rich text signed-only messages
      const { htmlWithCidImages, imgAttachments } = this.extractInlineImagesToAttachments(msg.body['text/html']);
      msg.body['text/html'] = htmlWithCidImages;
      msg.attachments.push(...imgAttachments);
    }

to be sure, not sure what the right approach is - needs to be tested for compatibility. For now putting it into "later" milestone.

Originally posted by @tomholub in #3256 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions