For my own convenience

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

@ -1494,6 +1494,25 @@ public class MessageHelper {
} }
} }
if (thread == null && BuildConfig.DEBUG) {
String awsses = imessage.getHeader("X-SES-Outgoing", null);
if (!TextUtils.isEmpty(awsses)) {
Address[] froms = getFrom();
if (froms != null && froms.length > 0) {
String from = ((InternetAddress) froms[0]).getAddress();
if (!TextUtils.isEmpty(from) && from.endsWith("@faircode.eu")) {
Address[] rr = getReply();
Address[] tos = (rr != null && rr.length > 0 ? rr : getTo());
if (tos != null && tos.length > 0) {
String email = ((InternetAddress) tos[0]).getAddress();
if (!TextUtils.isEmpty(email))
thread = "ses:" + email;
}
}
}
}
}
// Common reference // Common reference
if (thread == null && refs.size() > 0) { if (thread == null && refs.size() > 0) {
String ref = refs.get(0); String ref = refs.get(0);

Loading…
Cancel
Save