} catch (Exception e) {
e.printStackTrace();
}
+ if (syncMessage.getBlockedList().isPresent()) {
+ // TODO store list of blocked numbers
+ }
}
if (syncMessage.getContacts().isPresent()) {
try {
if (c.getName().isPresent()) {
contact.name = c.getName().get();
}
+ if (c.getColor().isPresent()) {
+ contact.color = c.getColor().get();
+ }
contactStore.updateContact(contact);
if (c.getAvatar().isPresent()) {
try {
for (ContactInfo record : contactStore.getContacts()) {
out.write(new DeviceContact(record.number, Optional.fromNullable(record.name),
- createContactAvatarAttachment(record.number)));
+ createContactAvatarAttachment(record.number), Optional.fromNullable(record.color)));
}
} finally {
out.close();