mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Refresh group before updating
This commit is contained in:
parent
c9c8af42c2
commit
01e1115806
1 changed files with 4 additions and 0 deletions
|
@ -513,6 +513,10 @@ public class GroupHelper {
|
|||
if (!g.isMember(account.getSelfRecipientId()) && !g.isPendingMember(account.getSelfRecipientId())) {
|
||||
throw new NotAGroupMemberException(groupId, g.getTitle());
|
||||
}
|
||||
if (groupId instanceof GroupIdV2) {
|
||||
// Refresh group before updating
|
||||
return getGroup(groupId, true);
|
||||
}
|
||||
return g;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue