mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Identity colors
This commit is contained in:
@@ -1870,9 +1870,15 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
}
|
||||
|
||||
if (message == null) {
|
||||
Address[] to = helper.getTo();
|
||||
EntityIdentity identity = null;
|
||||
if (to != null && to.length > 0)
|
||||
identity = db.identity().getIdentity(folder.account, ((InternetAddress) to[0]).getAddress());
|
||||
|
||||
message = new EntityMessage();
|
||||
message.account = folder.account;
|
||||
message.folder = folder.id;
|
||||
message.identity = (identity == null ? null : identity.id);
|
||||
message.uid = uid;
|
||||
|
||||
if (!EntityFolder.ARCHIVE.equals(folder.type)) {
|
||||
|
||||
Reference in New Issue
Block a user