mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-27 08:23:24 +00:00
Small improvement
This commit is contained in:
parent
b46b85f621
commit
6c629c1349
1 changed files with 4 additions and 3 deletions
|
@ -191,12 +191,13 @@ class Core {
|
|||
break;
|
||||
|
||||
case EntityOperation.MOVE:
|
||||
if (EntityOperation.MOVE.equals(next.name)) {
|
||||
if (message.uid != null &&
|
||||
EntityOperation.MOVE.equals(next.name)) {
|
||||
JSONArray jnext = new JSONArray(next.args);
|
||||
// Same target
|
||||
if (jargs.getLong(0) == jnext.getLong(0)) {
|
||||
EntityMessage m = db.message().getMessage(next.message);
|
||||
if (m != null) {
|
||||
if (m != null && m.uid != null) {
|
||||
processed.add(next.id);
|
||||
similar.put(next, m);
|
||||
}
|
||||
|
@ -792,7 +793,7 @@ class Core {
|
|||
for (EntityMessage message : messages)
|
||||
try {
|
||||
if (message.uid == null)
|
||||
throw new MessageRemovedException("move without uid");
|
||||
throw new IllegalArgumentException("move without uid");
|
||||
Message imessage = ifolder.getMessageByUID(message.uid);
|
||||
if (imessage == null)
|
||||
throw new MessageRemovedException("move without message");
|
||||
|
|
Loading…
Reference in a new issue