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