Fix GSE crash when attempting to send to non-GV2 groups.

This commit is contained in:
Cody Henthorne
2024-12-03 12:25:23 -05:00
committed by Greyson Parrelli
parent d6f8f8acb3
commit c12d577e8b

View File

@@ -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
}