Refresh group before updating

This commit is contained in:
AsamK 2022-10-07 19:49:52 +02:00
parent c9c8af42c2
commit 01e1115806

View file

@ -513,6 +513,10 @@ public class GroupHelper {
if (!g.isMember(account.getSelfRecipientId()) && !g.isPendingMember(account.getSelfRecipientId())) { if (!g.isMember(account.getSelfRecipientId()) && !g.isPendingMember(account.getSelfRecipientId())) {
throw new NotAGroupMemberException(groupId, g.getTitle()); throw new NotAGroupMemberException(groupId, g.getTitle());
} }
if (groupId instanceof GroupIdV2) {
// Refresh group before updating
return getGroup(groupId, true);
}
return g; return g;
} }