mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 07:25:20 +00:00
geohash chats: no building
This commit is contained in:
@@ -247,8 +247,11 @@ fun LocationChannelsSheet(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Nearby options (only show if location services are enabled)
|
// Nearby options (only show if location services are enabled)
|
||||||
|
// CRITICAL: Filter out .building level (precision 8) - iOS pattern
|
||||||
|
// iOS: let nearby = manager.availableChannels.filter { $0.level != .building }
|
||||||
if (availableChannels.isNotEmpty() && locationServicesEnabled) {
|
if (availableChannels.isNotEmpty() && locationServicesEnabled) {
|
||||||
items(availableChannels) { channel ->
|
val nearbyChannels = availableChannels.filter { it.level != GeohashChannelLevel.BUILDING }
|
||||||
|
items(nearbyChannels) { channel ->
|
||||||
val coverage = coverageString(channel.geohash.length)
|
val coverage = coverageString(channel.geohash.length)
|
||||||
val nameBase = locationNames[channel.level]
|
val nameBase = locationNames[channel.level]
|
||||||
val namePart = nameBase?.let { formattedNamePrefix(channel.level) + it }
|
val namePart = nameBase?.let { formattedNamePrefix(channel.level) + it }
|
||||||
|
|||||||
Reference in New Issue
Block a user