This commit is contained in:
the-djmaze 2024-11-26 02:47:17 +01:00
parent cd3398db20
commit 7a465606bc
3 changed files with 154 additions and 114 deletions

View file

@ -1,6 +1,7 @@
import 'External/User/ko';
import { SMAudio } from 'Common/Audio';
import { arrayLength } from 'Common/Utils';
import { mailToHelper, setLayoutResizer, dropdownsDetectVisibility, loadAccountsAndIdentities } from 'Common/UtilsUser';
import {
@ -240,7 +241,15 @@ export class AppUser extends AbstractApp {
showMessageComposer(params = [])
{
showScreenPopup(ComposePopupView, params);
let msg = params[1];
if (1 == arrayLength(msg)) {
msg = msg[0];
}
if (msg) {
msg.decrypt().then((/*success*/)=>showScreenPopup(ComposePopupView, params));
} else {
showScreenPopup(ComposePopupView, params);
}
}
}