mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix(neighborinfo): disable neighbor info dialog temporarily (#4345)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
12f7fe30b9
commit
091ca9b400
3 changed files with 101 additions and 101 deletions
|
|
@ -36,9 +36,9 @@ data class Capabilities(val firmwareVersion: String?, internal val forceEnableAl
|
|||
val canMuteNode: Boolean
|
||||
get() = isSupported("2.7.18")
|
||||
|
||||
/** Ability to request neighbor information from other nodes. Supported since firmware v2.7.15. */
|
||||
/** FIXME: Ability to request neighbor information from other nodes. Disabled until working better. */
|
||||
val canRequestNeighborInfo: Boolean
|
||||
get() = isSupported("2.7.15")
|
||||
get() = isSupported("9.9.9")
|
||||
|
||||
/** Ability to send verified shared contacts. Supported since firmware v2.7.12. */
|
||||
val canSendVerifiedContacts: Boolean
|
||||
|
|
|
|||
|
|
@ -32,11 +32,12 @@ class CapabilitiesTest {
|
|||
assertTrue(caps("2.8.1").canMuteNode)
|
||||
}
|
||||
|
||||
// FIXME: needs updating when NeighborInfo is working properly
|
||||
@Test
|
||||
fun `canRequestNeighborInfo requires v2 7 15`() {
|
||||
fun `canRequestNeighborInfo disabled`() {
|
||||
assertFalse(caps("2.7.14").canRequestNeighborInfo)
|
||||
assertTrue(caps("2.7.15").canRequestNeighborInfo)
|
||||
assertTrue(caps("2.8.0").canRequestNeighborInfo)
|
||||
assertFalse(caps("2.7.15").canRequestNeighborInfo)
|
||||
assertFalse(caps("2.8.0").canRequestNeighborInfo)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue