mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:53:05 +01:00
properly close all groupchats on exit
This commit is contained in:
parent
a0418520a2
commit
82aa64e8f7
@ -158,7 +158,7 @@ int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum, uint8_t type)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void kill_groupchat_window(ToxWindow *self)
|
||||
static void kill_groupchat_window(ToxWindow *self)
|
||||
{
|
||||
ChatContext *ctx = self->chatwin;
|
||||
|
||||
@ -173,7 +173,7 @@ void kill_groupchat_window(ToxWindow *self)
|
||||
del_window(self);
|
||||
}
|
||||
|
||||
static void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
|
||||
void close_groupchat(ToxWindow *self, Tox *m, int groupnum)
|
||||
{
|
||||
tox_del_groupchat(m, groupnum);
|
||||
group_audio_close_out_device(groupnum);
|
||||
|
@ -77,7 +77,7 @@ typedef struct {
|
||||
#endif
|
||||
} GroupChat;
|
||||
|
||||
void kill_groupchat_window(ToxWindow *self);
|
||||
void close_groupchat(ToxWindow *self, Tox *m, int groupnum);
|
||||
int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum, uint8_t type);
|
||||
|
||||
/* destroys and re-creates groupchat window with or without the peerlist */
|
||||
|
@ -561,7 +561,7 @@ void kill_all_windows(Tox *m)
|
||||
if (windows[i].is_chat)
|
||||
kill_chat_window(&windows[i], m);
|
||||
else if (windows[i].is_groupchat)
|
||||
kill_groupchat_window(&windows[i]);
|
||||
close_groupchat(&windows[i], m, i);
|
||||
}
|
||||
|
||||
kill_prompt_window(prompt);
|
||||
|
Loading…
Reference in New Issue
Block a user