[fractal] Show room detail info in 1:1 rooms
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Show room detail info in 1:1 rooms
- Date: Tue, 2 Jul 2019 06:48:10 +0000 (UTC)
commit def9fe0841ecbd68d09d5fe9fde45a0b4fc9151c
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Fri Jun 28 10:40:35 2019 +0200
Show room detail info in 1:1 rooms
fractal-gtk/src/widgets/room_settings.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/fractal-gtk/src/widgets/room_settings.rs b/fractal-gtk/src/widgets/room_settings.rs
index 29eb60f8..523d9b27 100644
--- a/fractal-gtk/src/widgets/room_settings.rs
+++ b/fractal-gtk/src/widgets/room_settings.rs
@@ -75,8 +75,10 @@ impl RoomSettings {
.get_object::<gtk::Stack>("room_settings_stack")
.expect("Can't find room_settings_stack in ui file.");
- /*as long we don't have an avatar, room topic, members list we show a spinner */
- if self.room.avatar.is_none() || self.room.topic.is_none() || self.room.members.len() < 1 {
+ // We can have rooms without name or topic but with members, the 1:1 rooms are this, so
+ // we should show the loading if we've nothing, if there's something we need to show
+ // the info
+ if self.room.avatar.is_none() && self.room.topic.is_none() && self.room.members.len() < 1 {
stack.set_visible_child_name("loading")
} else {
stack.set_visible_child_name("info")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]