mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 01:53:02 +01:00
fix building without audio
This commit is contained in:
parent
9464b369a4
commit
0a0891fa98
@ -473,8 +473,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
|
||||
|
||||
switch (change) {
|
||||
case TOX_CHAT_CHANGE_PEER_ADD:
|
||||
#ifdef AUDIO
|
||||
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
||||
group_audio_add_source(groupnum, peernum);
|
||||
#endif
|
||||
|
||||
if (!timed_out(groupchats[groupnum].start_time, get_unix_time(), GROUP_EVENT_WAIT))
|
||||
break;
|
||||
@ -506,8 +508,10 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
|
||||
break;
|
||||
|
||||
case TOX_CHAT_CHANGE_PEER_DEL:
|
||||
#ifdef AUDIO
|
||||
if (groupchats[groupnum].type == TOX_GROUPCHAT_TYPE_AV)
|
||||
group_audio_rm_source(groupnum, peernum);
|
||||
#endif
|
||||
|
||||
event = "has left the room";
|
||||
line_info_add(self, timefrmt, (char *) oldpeername, NULL, CONNECTION, 0, RED, event);
|
||||
|
Loading…
Reference in New Issue
Block a user