mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Small optimization
This commit is contained in:
parent
7519eddfa2
commit
edf4d56982
1 changed files with 3 additions and 1 deletions
|
@ -1475,7 +1475,9 @@ public class MessageHelper {
|
|||
|
||||
List<String> all = new ArrayList<>(refs);
|
||||
all.add(msgid);
|
||||
List<TupleThreadInfo> infos = db.message().getThreadInfo(account, all);
|
||||
List<TupleThreadInfo> infos = (all.size() == 0
|
||||
? new ArrayList<>()
|
||||
: db.message().getThreadInfo(account, all));
|
||||
|
||||
// References, In-Reply-To (sent before)
|
||||
for (TupleThreadInfo info : infos)
|
||||
|
|
Loading…
Reference in a new issue