diff options
author | James Booth <boothj5@gmail.com> | 2015-11-18 01:10:03 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-18 01:10:03 +0000 |
commit | edbd2d5843fe7cefd730899aace631416715bb8f (patch) | |
tree | cf72d205f64d625f9b7ce2e04a29f1546ed8b73a | |
parent | 4efe456e7446baf125cf55a3c9e4a73c978809ac (diff) | |
download | profani-tty-edbd2d5843fe7cefd730899aace631416715bb8f.tar.gz |
Don't show offline below contact
-rw-r--r-- | src/ui/rosterwin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c index 74c95996..a8f24e0e 100644 --- a/src/ui/rosterwin.c +++ b/src/ui/rosterwin.c @@ -49,7 +49,8 @@ _rosterwin_presence(ProfLayoutSplit *layout, int indent, theme_item_t colour, co gboolean by_presence = g_strcmp0(by, "presence") == 0; gboolean has_status = status != NULL; gboolean show_status = prefs_get_boolean(PREF_ROSTER_STATUS); - if (!by_presence || (has_status && show_status)) { + gboolean is_offline = g_strcmp0(presence, "offline") == 0; + if (!is_offline && (!by_presence || (has_status && show_status))) { wattron(layout->subwin, theme_attrs(colour)); GString *msg = g_string_new(" "); while (indent > 0) { |