Fix dummy store tree retrieval

This commit is contained in:
Joscha 2022-06-14 09:34:22 +02:00
parent 73582c3d1f
commit b96ade872f
2 changed files with 6 additions and 5 deletions

View file

@ -45,7 +45,8 @@ impl Ui {
// Prepare dummy message store and chat for testing
let store = DummyStore::new()
.msg(DummyMsg::new(1, "nick", "content"))
.msg(DummyMsg::new(2, "Some1Else", "reply").parent(1));
.msg(DummyMsg::new(2, "Some1Else", "reply").parent(1))
.msg(DummyMsg::new(4, "nick", "reply to nothing").parent(3));
let chat = Chat::new(store, "testroom".to_string());
// Run main UI.