Convert members collection to set to avoid duplicate entries.
This commit is contained in:
parent
982f602178
commit
fa23e4ca70
1 changed files with 1 additions and 1 deletions
|
@ -1005,7 +1005,7 @@ class GroupTable(context: Context?, databaseHelper: SignalDatabase?) : DatabaseT
|
|||
val inserts = SqlUtil.buildBulkInsert(
|
||||
MembershipTable.TABLE_NAME,
|
||||
arrayOf(MembershipTable.GROUP_ID, MembershipTable.RECIPIENT_ID),
|
||||
members.toContentValues(groupId)
|
||||
members.toSet().toContentValues(groupId)
|
||||
)
|
||||
|
||||
inserts.forEach {
|
||||
|
|
Loading…
Add table
Reference in a new issue