Fix JS runtime error when forwarding e-mails as attachments

This commit is contained in:
HeySora 2025-08-12 20:21:08 +02:00
parent ba496919dd
commit fbd98c95ee
No known key found for this signature in database
GPG key ID: 4D7EA911B823C340

View file

@ -245,7 +245,7 @@ export class AppUser extends AbstractApp {
if (1 == arrayLength(msg)) { if (1 == arrayLength(msg)) {
msg = msg[0]; msg = msg[0];
} }
if (msg) { if (msg && msg.decrypt) {
msg.decrypt().then((/*success*/)=>showScreenPopup(ComposePopupView, params)); msg.decrypt().then((/*success*/)=>showScreenPopup(ComposePopupView, params));
} else { } else {
showScreenPopup(ComposePopupView, params); showScreenPopup(ComposePopupView, params);