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

Load conference titles on startup for saved conferences (#43)

This commit is contained in:
JFreegman
2019-06-30 14:51:13 -04:00
committed by GitHub
parent 12b9cd2386
commit bb2257973e
7 changed files with 27 additions and 6 deletions

View File

@ -129,7 +129,7 @@ static void kill_groupchat_window(ToxWindow *self)
del_window(self);
}
int init_groupchat_win(ToxWindow *prompt, Tox *m, uint32_t groupnum, uint8_t type)
int init_groupchat_win(ToxWindow *prompt, Tox *m, uint32_t groupnum, uint8_t type, const char *title, size_t title_length)
{
if (groupnum > MAX_GROUPCHAT_NUM) {
return -1;
@ -146,6 +146,7 @@ int init_groupchat_win(ToxWindow *prompt, Tox *m, uint32_t groupnum, uint8_t typ
groupchats[i].start_time = get_unix_time();
set_active_window_index(groupchats[i].chatwin);
set_window_title(self, title, title_length);
if (i == max_groupchat_index) {
++max_groupchat_index;