From c12d577e8b20b6e0a97084e688c70097aba5497c Mon Sep 17 00:00:00 2001 From: Cody Henthorne Date: Tue, 3 Dec 2024 12:25:23 -0500 Subject: [PATCH] Fix GSE crash when attempting to send to non-GV2 groups. --- .../main/java/org/thoughtcrime/securesms/database/GroupTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/GroupTable.kt b/app/src/main/java/org/thoughtcrime/securesms/database/GroupTable.kt index 0f38d0e027..1a4b0388c3 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/GroupTable.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/database/GroupTable.kt @@ -988,7 +988,7 @@ class GroupTable(context: Context?, databaseHelper: SignalDatabase?) : DatabaseT fun getGroupSendFullToken(threadId: Long, recipientId: RecipientId): GroupSendFullToken? { val threadRecipient = SignalDatabase.threads.getRecipientForThreadId(threadId) - if (threadRecipient == null || !threadRecipient.isGroup) { + if (threadRecipient == null || !threadRecipient.isPushV2Group) { return null }