Fix crash when opening non-gv2 group.

This commit is contained in:
Cody Henthorne
2023-07-28 20:00:09 -04:00
parent 933e3233a7
commit 2e5e64b05d

View File

@@ -337,8 +337,10 @@ class ConversationRepository(
return Single.fromCallable {
val recipients = if (groupRecord == null) {
listOf(recipient)
} else {
} else if (groupRecord.isV2Group) {
groupRecord.requireV2GroupProperties().getMemberRecipients(GroupTable.MemberSet.FULL_MEMBERS_EXCLUDING_SELF)
} else {
emptyList()
}
val records = ApplicationDependencies.getProtocolStore().aci().identities().getIdentityRecords(recipients)