Fix crash for leave gv1.

This commit is contained in:
Sagar
2025-05-02 18:57:03 +05:30
committed by Cody Henthorne
parent 3c77a3d7aa
commit 51851fa5fe
5 changed files with 24 additions and 5 deletions

View File

@@ -80,7 +80,8 @@ public final class GroupManager {
throws GroupChangeBusyException, GroupChangeFailedException, IOException
{
if (!groupId.isV2()) {
throw new GroupChangeFailedException("Not gv2");
Log.w(TAG, "Not gv2");
return;
}
try (GroupManagerV2.GroupEditor edit = new GroupManagerV2(context).edit(groupId.requireV2())) {
@@ -101,7 +102,8 @@ public final class GroupManager {
throws IOException, GroupChangeBusyException, GroupChangeFailedException
{
if (!groupId.isV2()) {
throw new GroupChangeFailedException("Not gv2");
Log.w(TAG, "Not gv2");
return;
}
leaveGroup(context, groupId.requireV2(), true);