Attachments of a new email can't be previewed

Description

When writing an email if I attach an image or a text file I can’t preview it, it show as a blank page. The email will still send them, so it’s only a display bug. Seen on different computers with slightly different config.

To Reproduce…

  1. New email
  2. Attach Files
  3. Right click file → Preview
  4. Blank page

Expected Behavior

I should be able to see my attachments before sending them

Screenshots

Setup

  • OS and Version: Seen on both Pop!_OS 22.04 LTS, Ubuntu 24.04 LTS
  • Installation Method: Both on snap install and with the deb archive
  • Mailspring Version: 1.14.0-07c62cca

Additional Context

The same behavior can be seen from a standalone “new email” window or from a “reply” panel
If sent as a reply, as soon as I hit send they appear in the conversation

I tried installing it via deb after this bug since I thought it was a permission problem

Bug similar to #4855 Bu in my case I can preview files from received emails
Also similar to #8730 but his bug was on mac so I won’t conclude it is the same exact bug