mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Add first time in group check.
This commit is contained in:
@@ -106,4 +106,10 @@ class GroupManagementRepository @JvmOverloads constructor(private val context: C
|
||||
SignalDatabase.groups.removeUnmigratedV1Members(groupId)
|
||||
}.subscribeOn(Schedulers.io())
|
||||
}
|
||||
|
||||
fun isJustSelf(groupId: GroupId): Single<Boolean> {
|
||||
return Single.fromCallable {
|
||||
SignalDatabase.groups.requireGroup(groupId).members == listOf(Recipient.self().id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user