mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Ensure all group recipients have group records.
This commit is contained in:
committed by
Alex Hart
parent
ec51268439
commit
c7dabe1b6f
@@ -1846,19 +1846,9 @@ class ThreadTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTa
|
||||
|
||||
val recipient: Recipient = if (recipientSettings.groupId != null) {
|
||||
GroupTable.Reader(cursor).getCurrent()?.let { group ->
|
||||
val details = RecipientDetails(
|
||||
group.title,
|
||||
null,
|
||||
if (group.hasAvatar()) Optional.of(group.avatarId) else Optional.empty(),
|
||||
false,
|
||||
false,
|
||||
recipientSettings.registered,
|
||||
recipientSettings,
|
||||
null,
|
||||
false,
|
||||
group.isActive,
|
||||
null,
|
||||
Optional.of(group)
|
||||
val details = RecipientDetails.forGroup(
|
||||
groupRecord = group,
|
||||
recipientRecord = recipientSettings
|
||||
)
|
||||
Recipient(recipientId, details, false)
|
||||
} ?: Recipient.live(recipientId).get()
|
||||
|
||||
Reference in New Issue
Block a user