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

Add support for new voice state feature

This commit is contained in:
jfreegman
2022-02-05 14:11:25 -05:00
parent 1b9f4f337a
commit 4d501aeb2a
9 changed files with 138 additions and 5 deletions

View File

@ -555,6 +555,15 @@ void on_group_moderation(Tox *m, uint32_t groupnumber, uint32_t source_peer_id,
}
}
void on_group_voice_state(Tox *m, uint32_t groupnumber, Tox_Group_Voice_State voice_state, void *userdata)
{
for (size_t i = 0; i < MAX_WINDOWS_NUM; ++i) {
if (windows[i] != NULL && windows[i]->onGroupVoiceState != NULL) {
windows[i]->onGroupVoiceState(windows[i], m, groupnumber, voice_state);
}
}
}
/* CALLBACKS END */
int add_window(Tox *m, ToxWindow *w)