Fix message order and cursor movement
This commit is contained in:
parent
8cbdc89b7e
commit
b918f0f31f
3 changed files with 13 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ impl<M: Msg> TreeView<M> {
|
|||
let path = store.path(room, &cursor.id).await;
|
||||
let tree = store.tree(room, path.first()).await;
|
||||
if let Some(prev_sibling) = tree.prev_sibling(&cursor.id) {
|
||||
cursor.id = prev_sibling.clone();
|
||||
cursor.id = tree.last_child(prev_sibling.clone());
|
||||
return;
|
||||
} else if let Some(parent) = tree.parent(&cursor.id) {
|
||||
cursor.id = parent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue