kopia lustrzana https://github.com/ryukoposting/Signal-Android
Return empty from CDSv2 refresh if current recipient list is empty.
Co-authored-by: Greyson Parrelli <greyson@signal.org>fork-5.53.8
rodzic
f6e000ab97
commit
f111ac7cf2
|
@ -60,6 +60,10 @@ object ContactDiscoveryRefreshV2 {
|
|||
|
||||
val newE164s: Set<String> = newRecipientE164s + newSystemE164s
|
||||
|
||||
if (newE164s.isEmpty() && previousE164s.isEmpty()) {
|
||||
return ContactDiscovery.RefreshResult(emptySet(), emptyMap())
|
||||
}
|
||||
|
||||
val tokenToUse: ByteArray? = if (previousE164s.isNotEmpty()) {
|
||||
SignalStore.misc().cdsToken
|
||||
} else {
|
||||
|
|
Ładowanie…
Reference in New Issue