From 7bf3c1c7a420f3b118cb9e7888c58c15faab5950 Mon Sep 17 00:00:00 2001 From: Kevin Boos <1139460+kevinaboos@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:04:09 -0800 Subject: [PATCH] Use stack navigation actions to show/hide a room timeline (#52) This is strictly better than showing/hiding a room upon the `set_displayed_room()`, which might be too early in the event flow. There are still some minor issues with the StackNavigation widget not delivering all show/hide actions if you navigate *very quickly* back and forth between a stacknav view and the root_view, but that requires a separate fix. --- src/home/room_screen.rs | 146 +++++++++++++++++++++++----------------- src/home/rooms_list.rs | 1 + 2 files changed, 87 insertions(+), 60 deletions(-) diff --git a/src/home/room_screen.rs b/src/home/room_screen.rs index dff1563f..cb6dc241 100644 --- a/src/home/room_screen.rs +++ b/src/home/room_screen.rs @@ -229,7 +229,8 @@ live_design! { padding: 0.0 username =