Open attachments in Tauri

Parent: #680

Right now attachments open in a new tab, can’t do that in Tauri*. I think should likely use some kind of modal.

For file attachments, should download I guess?

Personally I think we should also use a modal for the web app, I don’t like that it opens in a new tab, so maybe do it for both?

*Well, clicking an image could open a browser tab I think? But I don’t like it. and not sure that works exactly with the cache/file storage if we do that.

Child ticket: #750

Still needs work I think but it does function and I’m going crazy looking at it: https://pr.pico.sh/cheogram-www/tauri-media-handling

did initial review and added comments

submitted a new version. I added comments as replies where I didn’t change things. I deleted comments if I felt I resolved them

I like the idea of using a modal in the web app as well, ideally with a download button to trigger saving a copy to the local filesystem.

1 Like

the tauri version for now is just going to open in whatever your system registers for that type but I also prefer the modal. We could change it later to allow both.

included newer version in a larger pr for tauri alpha: Refactor service worker access - pr summary

Maybe a new issue for the idea of a modal