mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix storage sync issues with usernames.
This commit is contained in:
@@ -206,9 +206,11 @@ object ContactDiscoveryRefreshV2 {
|
||||
*/
|
||||
@WorkerThread
|
||||
private fun Set<RecipientId>.removePossiblyRegisteredButUnlisted(): Set<RecipientId> {
|
||||
val selfId = Recipient.self().id
|
||||
return this - Recipient.resolvedList(this)
|
||||
.filter { it.hasServiceId() }
|
||||
.filter { hasCommunicatedWith(it) }
|
||||
.filter {
|
||||
(it.hasServiceId() && hasCommunicatedWith(it)) || it.id == selfId
|
||||
}
|
||||
.map { it.id }
|
||||
.toSet()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user