mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 04:20:38 +00:00
Store blocked state from incoming contact and group sync messages
This commit is contained in:
parent
f7dd8b40bd
commit
d617a9255a
1 changed files with 2 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue