Small optimization

pull/194/merge
M66B 3 years ago
parent 7519eddfa2
commit edf4d56982

@ -1475,7 +1475,9 @@ public class MessageHelper {
List<String> all = new ArrayList<>(refs); List<String> all = new ArrayList<>(refs);
all.add(msgid); 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) // References, In-Reply-To (sent before)
for (TupleThreadInfo info : infos) for (TupleThreadInfo info : infos)

Loading…
Cancel
Save