Store blocked state from incoming contact and group sync messages

This commit is contained in:
Daniel Schäufele 2020-01-20 00:24:19 +01:00
parent f7dd8b40bd
commit d617a9255a

View file

@ -1287,6 +1287,7 @@ public class Manager implements Signal {
} }
syncGroup.addMembers(g.getMembers()); syncGroup.addMembers(g.getMembers());
syncGroup.active = g.isActive(); syncGroup.active = g.isActive();
syncGroup.blocked = g.isBlocked();
if (g.getColor().isPresent()) { if (g.getColor().isPresent()) {
syncGroup.color = g.getColor().get(); syncGroup.color = g.getColor().get();
} }
@ -1365,9 +1366,7 @@ public class Manager implements Signal {
thread.messageExpirationTime = c.getExpirationTimer().get(); thread.messageExpirationTime = c.getExpirationTimer().get();
account.getThreadStore().updateThread(thread); account.getThreadStore().updateThread(thread);
} }
if (c.isBlocked()) { contact.blocked = c.isBlocked();
// TODO store list of blocked numbers
}
account.getContactStore().updateContact(contact); account.getContactStore().updateContact(contact);
if (c.getAvatar().isPresent()) { if (c.getAvatar().isPresent()) {