Fix possible crash with CDSv2 compat.

This commit is contained in:
Greyson Parrelli
2022-09-02 10:52:20 -04:00
parent a45ede9348
commit 135d002f02
2 changed files with 2 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ object ContactDiscoveryRefreshV2 {
@WorkerThread
private fun Set<RecipientId>.removeRegisteredButUnlisted(): Set<RecipientId> {
val futures: List<Future<Pair<RecipientId, Boolean?>>> = Recipient.resolvedList(this)
.filter { it.hasServiceId() }
.filter { hasCommunicatedWith(it) }
.map {
SignalExecutors.UNBOUNDED.submit(