Fix scrolling when sending a message

This commit is contained in:
Joscha 2022-08-02 22:34:36 +02:00
parent 3ab73668ba
commit 76352f9b6b

View file

@ -265,6 +265,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
fn sent(&mut self, id: Option<M::Id>) {
if let Cursor::Pseudo { coming_from, .. } = &self.cursor {
if let Some(id) = id {
self.last_cursor = Cursor::Msg(id.clone());
self.cursor = Cursor::Msg(id);
self.editor.clear();
} else {