use correct ids in test data

pull/8/head
geeksville 2020-02-17 13:46:13 -08:00
rodzic f18ac28dc0
commit 969f6992bf
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -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."
)
)

Wyświetl plik

@ -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")
}