From 16a8b21eec439c4119d1c35dc02855817fb3d301 Mon Sep 17 00:00:00 2001 From: chklump Date: Sun, 10 Feb 2019 11:46:38 +0100 Subject: [PATCH 1/2] Fix for #698 part 1: Crash when creating new group with empty name. --- src/org/thoughtcrime/securesms/GroupCreateActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/org/thoughtcrime/securesms/GroupCreateActivity.java b/src/org/thoughtcrime/securesms/GroupCreateActivity.java index 9cf821a5f..2f6eb01e4 100644 --- a/src/org/thoughtcrime/securesms/GroupCreateActivity.java +++ b/src/org/thoughtcrime/securesms/GroupCreateActivity.java @@ -277,6 +277,9 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity groupCreateInDb(); } + if (groupChatId==0) // Group still hasn't been created e.g. due to empty name + return true; + if(isEdit()) { groupUpdateDone(); } From 9a78bfe8781b625ead6deafe478d600c08e9247f Mon Sep 17 00:00:00 2001 From: chklump Date: Sun, 10 Feb 2019 12:32:48 +0100 Subject: [PATCH 2/2] Fix for #698 part 2: "Me" not part of the group when clicked on "QR invite code" and no one joined. --- src/org/thoughtcrime/securesms/GroupCreateActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/GroupCreateActivity.java b/src/org/thoughtcrime/securesms/GroupCreateActivity.java index 2f6eb01e4..0ae75e641 100644 --- a/src/org/thoughtcrime/securesms/GroupCreateActivity.java +++ b/src/org/thoughtcrime/securesms/GroupCreateActivity.java @@ -472,6 +472,7 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity Intent qrIntent = new Intent(GroupCreateActivity.this, QrShowActivity.class); qrIntent.putExtra(QrShowActivity.CHAT_ID, groupChatId); startActivity(qrIntent); + initializeExistingGroup(); // To reread the recipients from the newly created group. } }