Merge pull request #1981 from HeySora/fix-js-runtime-error

Fix JS runtime error when forwarding e-mails as attachments
This commit is contained in:
Maarten 2026-11-02 22:50:15 +01:00 • committed by GitHub
commit 12cce0ace4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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