kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
use correct ids in test data
rodzic
f18ac28dc0
commit
969f6992bf
|
@ -13,11 +13,11 @@ data class TextMessage(val from: String, val text: String, val date: Date = Date
|
||||||
object MessagesState : Logging {
|
object MessagesState : Logging {
|
||||||
val testTexts = listOf(
|
val testTexts = listOf(
|
||||||
TextMessage(
|
TextMessage(
|
||||||
"+16508675310",
|
"+16508765310",
|
||||||
"I found the cache"
|
"I found the cache"
|
||||||
),
|
),
|
||||||
TextMessage(
|
TextMessage(
|
||||||
"+16508675311",
|
"+16508765311",
|
||||||
"Help! I've fallen and I can't get up."
|
"Help! I've fallen and I can't get up."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -45,4 +45,6 @@ object NodeDB {
|
||||||
|
|
||||||
/// A map from nodeid to to nodeinfo
|
/// A map from nodeid to to nodeinfo
|
||||||
val nodes = mutableStateOf(testNodes.map { it.user!!.id to it }.toMap())
|
val nodes = mutableStateOf(testNodes.map { it.user!!.id to it }.toMap())
|
||||||
|
|
||||||
|
val ourNodeInfo get() = nodes.value[myId.value!!] ?: error("our node not found")
|
||||||
}
|
}
|
Ładowanie…
Reference in New Issue