mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Check for mucwin before showing room in roster
This commit is contained in:
parent
254c83d2d1
commit
f9d89d564f
@ -429,7 +429,9 @@ _rosterwin_rooms(ProfLayoutSplit *layout, gboolean newline)
|
|||||||
GList *curr_room = rooms;
|
GList *curr_room = rooms;
|
||||||
while (curr_room) {
|
while (curr_room) {
|
||||||
ProfMucWin *mucwin = wins_get_muc(curr_room->data);
|
ProfMucWin *mucwin = wins_get_muc(curr_room->data);
|
||||||
_rosterwin_room(layout, mucwin);
|
if (mucwin) {
|
||||||
|
_rosterwin_room(layout, mucwin);
|
||||||
|
}
|
||||||
curr_room = g_list_next(curr_room);
|
curr_room = g_list_next(curr_room);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user