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