1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 03:16:45 +02:00

Fix/update groupchat UI

This commit is contained in:
jfreegman
2020-11-30 14:14:34 -05:00
parent 28be56aad9
commit 4aca8b6ecb
3 changed files with 39 additions and 28 deletions

View File

@ -712,7 +712,7 @@ void on_window_resize(void)
wclear(w->help->win);
}
if (w->type == WINDOW_TYPE_CONFERENCE) {
if (w->type == WINDOW_TYPE_CONFERENCE || w->type == WINDOW_TYPE_GROUPCHAT) {
delwin(w->chatwin->sidebar);
w->chatwin->sidebar = NULL;
} else {
@ -740,7 +740,7 @@ void on_window_resize(void)
} else {
w->chatwin->history = subwin(w->window, y2 - CHATBOX_HEIGHT - WINDOW_BAR_HEIGHT, x2, 0, 0);
if (w->type != WINDOW_TYPE_CONFERENCE) {
if (!(w->type == WINDOW_TYPE_CONFERENCE || w->type == WINDOW_TYPE_GROUPCHAT)) {
w->stb->topline = subwin(w->window, TOP_BAR_HEIGHT, x2, 0, 0);
}
}