mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix crash for leave gv1.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user