Handle deletion of contacts

pull/153/head
M66B 7 years ago
parent f0b51a1edf
commit c4ab2d0ed9

@ -1281,14 +1281,12 @@ class Core {
Log.i(folder.name + " updated id=" + message.id + " uid=" + message.uid + " unbrowse"); Log.i(folder.name + " updated id=" + message.id + " uid=" + message.uid + " unbrowse");
} }
if (message.avatar == null) {
Uri lookupUri = ContactInfo.getLookupUri(context, message.from); Uri lookupUri = ContactInfo.getLookupUri(context, message.from);
if (lookupUri != null) { if ((message.avatar == null) == (lookupUri != null)) {
update = true; update = true;
message.avatar = lookupUri.toString(); message.avatar = (lookupUri == null ? null : lookupUri.toString());
Log.i(folder.name + " updated id=" + message.id + " lookup=" + lookupUri); Log.i(folder.name + " updated id=" + message.id + " lookup=" + lookupUri);
} }
}
if (update) if (update)
db.message().updateMessage(message); db.message().updateMessage(message);

Loading…
Cancel
Save