Fixed me check

pull/155/head
M66B 7 years ago
parent 856d04d79e
commit b19dd4f9bb

@ -1368,9 +1368,9 @@ class Core {
Address[] recipients = (type == EntityContact.TYPE_TO
? message.to
: (message.reply != null ? message.reply : message.from));
if (recipients != null) {
// Check if from self
if (type == EntityContact.TYPE_FROM) {
if (type == EntityContact.TYPE_FROM && recipients != null && recipients.length > 0) {
boolean me = true;
for (Address reply : recipients) {
String email = ((InternetAddress) reply).getAddress();
@ -1387,6 +1387,7 @@ class Core {
recipients = message.to;
}
if (recipients != null) {
for (Address recipient : recipients) {
String email = ((InternetAddress) recipient).getAddress();
String name = ((InternetAddress) recipient).getPersonal();

Loading…
Cancel
Save