Identity colors

This commit is contained in:
M66B
2018-11-10 16:47:11 +00:00
parent bb7c730936
commit b6c651126d
10 changed files with 1225 additions and 20 deletions

View File

@@ -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)) {