No need to check for !oMoveFolder && !bDelete

This commit is contained in:
the-djmaze 2023-10-08 14:45:50 +02:00
parent bbf45ea979
commit 8fda2f4955

View file

@ -125,9 +125,7 @@ export class AppUser extends AbstractApp {
// no default // no default
} }
if (!oMoveFolder && !bDelete) { if (bDelete) {
showScreenPopup(FolderSystemPopupView, [nSetSystemFoldersNotification]);
} else if (bDelete) {
showScreenPopup(AskPopupView, [ showScreenPopup(AskPopupView, [
i18n('POPUPS_ASK/DESC_WANT_DELETE_MESSAGES'), i18n('POPUPS_ASK/DESC_WANT_DELETE_MESSAGES'),
() => { () => {
@ -136,6 +134,8 @@ export class AppUser extends AbstractApp {
]); ]);
} else if (oMoveFolder) { } else if (oMoveFolder) {
MessagelistUserStore.moveMessages(sFromFolderFullName, oUids, oMoveFolder.fullName); MessagelistUserStore.moveMessages(sFromFolderFullName, oUids, oMoveFolder.fullName);
} else {
showScreenPopup(FolderSystemPopupView, [nSetSystemFoldersNotification]);
} }
} }