mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-24 00:33:14 -04:00
use correct ids in test data
This commit is contained in:
@@ -13,11 +13,11 @@ data class TextMessage(val from: String, val text: String, val date: Date = Date
|
||||
object MessagesState : Logging {
|
||||
val testTexts = listOf(
|
||||
TextMessage(
|
||||
"+16508675310",
|
||||
"+16508765310",
|
||||
"I found the cache"
|
||||
),
|
||||
TextMessage(
|
||||
"+16508675311",
|
||||
"+16508765311",
|
||||
"Help! I've fallen and I can't get up."
|
||||
)
|
||||
)
|
||||
|
||||
@@ -45,4 +45,6 @@ object NodeDB {
|
||||
|
||||
/// A map from nodeid to to nodeinfo
|
||||
val nodes = mutableStateOf(testNodes.map { it.user!!.id to it }.toMap())
|
||||
|
||||
val ourNodeInfo get() = nodes.value[myId.value!!] ?: error("our node not found")
|
||||
}
|
||||
Reference in New Issue
Block a user