2020-06-09 05:58:01 +02:00
|
|
|
package org.thoughtcrime.securesms.loki.activities
|
|
|
|
|
|
|
|
import android.content.Context
|
2020-06-10 08:04:07 +02:00
|
|
|
import org.thoughtcrime.securesms.database.DatabaseFactory
|
2020-06-09 05:58:01 +02:00
|
|
|
import org.thoughtcrime.securesms.util.AsyncLoader
|
|
|
|
|
2020-08-18 01:34:22 +02:00
|
|
|
class EditClosedGroupLoader(context: Context, val groupID: String) : AsyncLoader<List<String>>(context) {
|
2020-06-09 05:58:01 +02:00
|
|
|
|
|
|
|
override fun loadInBackground(): List<String> {
|
2020-06-22 05:51:47 +02:00
|
|
|
val members = DatabaseFactory.getGroupDatabase(context).getGroupMembers(groupID, true)
|
2020-06-10 08:04:07 +02:00
|
|
|
return members.map {
|
2021-01-15 05:36:30 +01:00
|
|
|
it.address.toString()
|
2020-06-10 08:04:07 +02:00
|
|
|
}
|
|
|
|
}
|
2020-06-09 05:58:01 +02:00
|
|
|
}
|