mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 23:43:29 +01:00
commit
d712ccc17e
@ -506,11 +506,14 @@ void chat_onInvite (ToxWindow *self, ToxAv *av, int call_index)
|
|||||||
self->call_idx = call_index;
|
self->call_idx = call_index;
|
||||||
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Incoming audio call! Type: \"/answer\" or \"/reject\"");
|
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Incoming audio call! Type: \"/answer\" or \"/reject\"");
|
||||||
|
|
||||||
|
if (self->ringing_sound == -1)
|
||||||
|
sound_notify(self, call_incoming, NT_LOOP, &self->ringing_sound);
|
||||||
|
|
||||||
if (self->ringing_sound != -1)
|
|
||||||
box_notify2(self, call_incoming, NT_LOOP | NT_WNDALERT_0, self->ringing_sound, "Incoming audio call!");
|
if (self->active_box != -1)
|
||||||
|
box_silent_notify2(self, NT_NOFOCUS | NT_WNDALERT_0, self->active_box, "Incoming audio call!");
|
||||||
else
|
else
|
||||||
box_notify(self, call_incoming, NT_LOOP | NT_WNDALERT_0, &self->ringing_sound, self->name, "Incoming audio call!");
|
box_silent_notify(self, NT_NOFOCUS | NT_WNDALERT_0, &self->active_box, self->name, "Incoming audio call!");
|
||||||
}
|
}
|
||||||
|
|
||||||
void chat_onRinging (ToxWindow *self, ToxAv *av, int call_index)
|
void chat_onRinging (ToxWindow *self, ToxAv *av, int call_index)
|
||||||
|
Loading…
Reference in New Issue
Block a user