mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Resolve #1849
This commit is contained in:
parent
cd3398db20
commit
7a465606bc
3 changed files with 154 additions and 114 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue