mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Get contact info in real-time, refactoring, improvements
This commit is contained in:
@@ -2607,8 +2607,11 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
if (message == null)
|
||||
return;
|
||||
|
||||
if (message.setContactInfo(context))
|
||||
db.message().updateMessage(message);
|
||||
if (message.avatar == null && !folder.isOutgoing()) {
|
||||
message.avatar = EntityMessage.getLookupUri(context, message.from);
|
||||
if (message.avatar != null)
|
||||
db.message().updateMessage(message);
|
||||
}
|
||||
|
||||
if (download) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
||||
Reference in New Issue
Block a user