From 01e1115806e9d5de92baae7848906adf7d9eae2d Mon Sep 17 00:00:00 2001 From: AsamK Date: Fri, 7 Oct 2022 19:49:52 +0200 Subject: [PATCH] Refresh group before updating --- .../java/org/asamk/signal/manager/helper/GroupHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java b/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java index be57d19b..90d5d726 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/GroupHelper.java @@ -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; }