about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-02 02:50:17 +0000
committerJames Booth <boothj5@gmail.com>2016-01-02 02:50:17 +0000
commit523c35c375a3e820231adb9e9e1409731e1178e3 (patch)
tree7916d961931cd5aa7102d09552c57860e4e7967e /src
parent8ca3fe4ea81dc04b1ceeced407c8250e3430c96f (diff)
downloadprofani-tty-523c35c375a3e820231adb9e9e1409731e1178e3.tar.gz
Fix roster rooms checks
Diffstat (limited to 'src')
-rw-r--r--src/ui/rosterwin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/rosterwin.c b/src/ui/rosterwin.c
index c732bf05..dd5d886f 100644
--- a/src/ui/rosterwin.c
+++ b/src/ui/rosterwin.c
@@ -429,7 +429,7 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline)
     g_list_free(rooms);
 
     // if this group has contacts, or if we want to show empty groups
-    if (rooms || prefs_get_boolean(PREF_ROSTER_EMPTY)) {
+    if (rooms_sorted || prefs_get_boolean(PREF_ROSTER_EMPTY)) {
         if (newline) {
             win_sub_newline_lazy(layout->subwin);
         }
@@ -441,7 +441,7 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline)
         }
         g_string_append(title_str, "Rooms");
         if (prefs_get_boolean(PREF_ROSTER_COUNT)) {
-            g_string_append_printf(title_str, " (%d)", g_list_length(rooms));
+            g_string_append_printf(title_str, " (%d)", g_list_length(rooms_sorted));
         }
         gboolean wrap = prefs_get_boolean(PREF_ROSTER_WRAP);
         win_sub_print(layout->subwin, title_str->str, FALSE, wrap, 1);
tle='author Kartik K. Agaram <vc@akkartik.com> 2015-07-29 01:23:22 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-07-29 01:23:22 -0700 1880 - switch .mu files to new type-deducing idiom' href='/akkartik/mu/commit/channel.mu?h=hlt&id=ce87c19ee42bc52c5ab9a1ee3c431a9423e5a885'>ce87c19e ^
b96af395 ^
f192d655 ^
b96af395 ^
f192d655 ^
b96af395 ^

77d5b5d6 ^
b96af395 ^


ce87c19e ^
b96af395 ^
5497090a ^
b96af395 ^

f192d655 ^
b96af395 ^
f192d655 ^
b96af395 ^
77d5b5d6 ^
bc643692 ^
b96af395 ^
ce87c19e ^



b96af395 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43