Common reference

This commit is contained in:
M66B 2022-01-08 16:47:13 +01:00
parent aa473c9204
commit 5e72fca15e
1 changed files with 14 additions and 0 deletions

View File

@ -1340,6 +1340,13 @@ public class MessageHelper {
}
}
// Common reference
if (thread == null && refs.size() > 0) {
String ref = refs.get(0);
if (!Objects.equals(ref, msgid))
thread = ref;
}
if (thread == null)
thread = getHash() + ":" + uid;
@ -1422,6 +1429,13 @@ public class MessageHelper {
}
}
// Common reference
if (thread == null && refs.size() > 0) {
String ref = refs.get(0);
if (!Objects.equals(ref, msgid))
thread = ref;
}
if (thread == null)
thread = getHash() + ":" + uid;