mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Move onto self should not happen
This commit is contained in:
@@ -949,7 +949,7 @@ class Core {
|
||||
if (target == null)
|
||||
throw new FolderNotFoundException();
|
||||
if (folder.id.equals(target.id))
|
||||
return;
|
||||
throw new IllegalArgumentException("self");
|
||||
|
||||
IMAPFolder itarget = (IMAPFolder) istore.getFolder(target.name);
|
||||
|
||||
@@ -1109,7 +1109,7 @@ class Core {
|
||||
if (target == null)
|
||||
throw new FolderNotFoundException();
|
||||
if (folder.id.equals(target.id))
|
||||
return;
|
||||
throw new IllegalArgumentException("self");
|
||||
|
||||
// Move from trash/drafts only
|
||||
if (!EntityFolder.TRASH.equals(folder.type) &&
|
||||
|
||||
Reference in New Issue
Block a user