From 76d93a20c09cd759994f81ed28098ef7171e892b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Moreno?= Date: Wed, 26 Jun 2019 10:01:02 +0200 Subject: [PATCH] Reload active room on rooms update We need to select again the active room when we clear the room list and we've one active room so we can reload the list of messages. Fix https://gitlab.gnome.org/GNOME/fractal/issues/404 --- fractal-gtk/src/appop/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fractal-gtk/src/appop/room.rs b/fractal-gtk/src/appop/room.rs index d0cd2ac1..65435fde 100644 --- a/fractal-gtk/src/appop/room.rs +++ b/fractal-gtk/src/appop/room.rs @@ -121,7 +121,7 @@ impl AppOp { }); // Select active room in the sidebar if let Some(ref active_room) = self.active_room { - self.roomlist.select(active_room); + self.set_active_room_by_id(active_room.clone()); } self.cache_rooms(); }