1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Don't show offline below contact

This commit is contained in:
James Booth 2015-11-18 01:10:03 +00:00
parent 4efe456e74
commit edbd2d5843

View File

@ -49,7 +49,8 @@ _rosterwin_presence(ProfLayoutSplit *layout, int indent, theme_item_t colour, co
gboolean by_presence = g_strcmp0(by, "presence") == 0; gboolean by_presence = g_strcmp0(by, "presence") == 0;
gboolean has_status = status != NULL; gboolean has_status = status != NULL;
gboolean show_status = prefs_get_boolean(PREF_ROSTER_STATUS); 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)); wattron(layout->subwin, theme_attrs(colour));
GString *msg = g_string_new(" "); GString *msg = g_string_new(" ");
while (indent > 0) { while (indent > 0) {