mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 12:37:26 +00:00
Merge remote-tracking branch 'origin/dev' into closed_groups
# Conflicts: # app/src/main/java/org/thoughtcrime/securesms/components/ProfilePictureView.kt # app/src/main/java/org/thoughtcrime/securesms/util/IP2Country.kt
This commit is contained in:
@@ -46,7 +46,8 @@ object OnionRequestAPI {
|
||||
|
||||
var guardSnodes = setOf<Snode>()
|
||||
var _paths: AtomicReference<List<Path>?> = AtomicReference(null)
|
||||
var paths: List<Path> // Not a set to ensure we consistently show the same path to the user
|
||||
var paths: List<Path> // Not a Set to ensure we consistently show the same path to the user
|
||||
@Synchronized
|
||||
get() {
|
||||
val paths = _paths.get()
|
||||
|
||||
@@ -59,6 +60,7 @@ object OnionRequestAPI {
|
||||
_paths.set(result)
|
||||
return result
|
||||
}
|
||||
@Synchronized
|
||||
set(newValue) {
|
||||
if (newValue.isEmpty()) {
|
||||
database.clearOnionRequestPaths()
|
||||
|
Reference in New Issue
Block a user