mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 12:30:39 +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.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()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue