mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 12:07:26 +00:00
Simplify and document some functions
This commit is contained in:
@@ -736,10 +736,7 @@ object SnodeAPI {
|
||||
else json?.let(::parseSnodes)
|
||||
?.takeIf { it.isNotEmpty() }
|
||||
?.let { database.setSwarm(publicKey, it.toSet()) }
|
||||
?: run {
|
||||
Log.d("Loki", "Invalidating swarm for: $publicKey.")
|
||||
dropSnodeFromSwarmIfNeeded(snode, publicKey)
|
||||
}
|
||||
?: dropSnodeFromSwarmIfNeeded(snode, publicKey).also { Log.d("Loki", "Invalidating swarm for: $publicKey.") }
|
||||
}
|
||||
404 -> {
|
||||
Log.d("Loki", "404, probably no file found")
|
||||
|
Reference in New Issue
Block a user