mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-10-18 07:33:01 +00:00
Merge 81c25b15fb5ae7078452d8b2af50423921c41a55 into 4f828b5643ff87a5064c8d384d0a4cb64001d2b2
This commit is contained in:
commit
5b41aefbb5
@ -64,10 +64,17 @@ class GeohashRepository(
|
||||
// peerID alias -> nostr pubkey mapping for geohash DMs and temp aliases
|
||||
private val nostrKeyMapping: MutableMap<String, String> = mutableMapOf()
|
||||
|
||||
// Current geohash in view
|
||||
// Current geohash in view. Written from the UI thread when the user picks
|
||||
// a channel and read from Nostr handler and timer threads - including from
|
||||
// the @Synchronized methods below, which only see a published write if the
|
||||
// write itself is synchronized. NotificationManager marks its copy of this
|
||||
// state @Volatile for the same reason.
|
||||
private var currentGeohash: String? = null
|
||||
|
||||
@Synchronized
|
||||
fun setCurrentGeohash(geo: String?) { currentGeohash = geo }
|
||||
|
||||
@Synchronized
|
||||
fun getCurrentGeohash(): String? = currentGeohash
|
||||
|
||||
@Synchronized
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user