mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-15 02:02:40 -05:00
feat: create NodeEntity.isUnknownUser property
This commit is contained in:
@@ -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