Fallback to in-reply-to for thread ID when no references

This commit is contained in:
M66B 2018-12-08 14:04:15 +01:00
parent a6b65f9330
commit 4bb7928319
1 changed files with 4 additions and 0 deletions

View File

@ -402,6 +402,10 @@ public class MessageHelper {
if (!TextUtils.isEmpty(ref))
return ref;
String inreplyto = getInReplyTo();
if (inreplyto != null)
return inreplyto;
String msgid = getMessageID();
return (TextUtils.isEmpty(msgid) ? Long.toString(uid) : msgid);
}