[fractal] AppOp::set_active_room_by_id: call set_state after changing the active room
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] AppOp::set_active_room_by_id: call set_state after changing the active room
- Date: Wed, 10 Apr 2019 07:14:31 +0000 (UTC)
commit c0de295a2cc4fd55f9249eb957cb65397dea845a
Author: Symphorien Gibol <symphorien+git xlumurb eu>
Date: Tue Apr 2 21:22:57 2019 +0200
AppOp::set_active_room_by_id: call set_state after changing the active room
Fixes GNOME/fractal#470
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 ec89115b..d652dce6 100644
--- a/fractal-gtk/src/appop/room.rs
+++ b/fractal-gtk/src/appop/room.rs
@@ -119,7 +119,6 @@ impl AppOp {
return;
}
}
- self.set_state(AppState::Room);
let msg_entry = self.ui.sventry.view.clone();
if let Some(buffer) = msg_entry.get_buffer() {
@@ -186,6 +185,7 @@ impl AppOp {
self.history = Some(history);
self.active_room = Some(active_room);
+ self.set_state(AppState::Room);
/* Mark the new active room as read */
self.mark_last_message_as_read(Force(false));
self.update_typing_notification();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]