1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

wins_show_subwin(): Add windows type test

Fix https://github.com/profanity-im/profanity/issues/1321
This commit is contained in:
Michael Vetter 2020-04-22 14:03:29 +02:00
parent 5ec1b03cbc
commit bad56b5062

View File

@ -742,6 +742,12 @@ wins_show_subwin(ProfWin *window)
{
win_show_subwin(window);
// only mucwin and console have occupants/roster subwin
if (window->type != WIN_MUC ||
window->type != WIN_CONSOLSE) {
return;
}
ProfWin *current_win = wins_get_current();
win_refresh_with_subwin(current_win);
}