mucwin_hide_occupants takes ProfMucWin

This commit is contained in:
James Booth
2015-11-02 01:01:37 +00:00
parent 668f92ece2
commit 6779c5bf68
5 changed files with 9 additions and 7 deletions

View File

@@ -773,10 +773,12 @@ mucwin_show_occupants(ProfMucWin *mucwin)
}
void
mucwin_hide_occupants(const char *const roomjid)
mucwin_hide_occupants(ProfMucWin *mucwin)
{
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
if (window && win_has_active_subwin(window)) {
assert(mucwin != NULL);
ProfWin *window = (ProfWin*)mucwin;
if (win_has_active_subwin(window)) {
wins_hide_subwin(window);
}
}