mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-07 19:11:27 -04:00
feat: create NodeEntity.isUnknownUser property
This commit is contained in:
1 parent
2050cd0b4b
commit
eacf3a87a0
3 files changed
+3
-4
No files matched your search
@@ -161,9 +161,7 @@ class NodeInfoDaoTest {
|
||||
@Test
|
||||
fun testIncludeUnknownIsFalse() = runBlocking {
|
||||
val nodes = getNodes(includeUnknown = false)
|
||||
val containsUnsetNode = nodes.any { node ->
|
||||
node.user.hwModel == MeshProtos.HardwareModel.UNSET
|
||||
}
|
||||
val containsUnsetNode = nodes.any { it.isUnknownUser }
|
||||
assertFalse(containsUnsetNode)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user