### Steps to reproduce 1. Have a setup without Viewer app 2. Follow instructions from https://github.com/nextcloud/mail/issues/13452 ### Expected behavior If Viewer is not installed, do not offer preview. ### Actual behavior Visual elements for the attachments do not render at all. Also get error as posted in https://github.com/nextcloud/mail/issues/13452#issuecomment-5251411403 ### Mail app version _No response_ ### Nextcloud version _No response_ ### Mailserver or service _No response_ ### Operating system _No response_ ### PHP engine version None ### Nextcloud memory caching _No response_ ### Web server None ### Database None ### Additional info https://github.com/nextcloud/mail/blob/v5.10.11/src/mixins/AttachementMixin.js assumes `OCA.Viewer` exists. We should check if it exists and fallback gracefully, if it doesn't
Steps to reproduce
Expected behavior
If Viewer is not installed, do not offer preview.
Actual behavior
Visual elements for the attachments do not render at all.
Also get error as posted in #13452 (comment)
Mail app version
No response
Nextcloud version
No response
Mailserver or service
No response
Operating system
No response
PHP engine version
None
Nextcloud memory caching
No response
Web server
None
Database
None
Additional info
https://github.com/nextcloud/mail/blob/v5.10.11/src/mixins/AttachementMixin.js assumes
OCA.Viewerexists.We should check if it exists and fallback gracefully, if it doesn't