1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 22:13:02 +01:00
This commit is contained in:
zugz (tox) 2020-11-14 00:00:00 +00:00
parent d75d6e8b60
commit 4581dee4fc
No known key found for this signature in database
GPG Key ID: 6F2BDA289D04F249
3 changed files with 6 additions and 4 deletions

View File

@ -138,7 +138,8 @@ void cmd_conference_join(WINDOW *window, ToxWindow *self, Tox *m, int argc, char
} }
} else if (type == TOX_CONFERENCE_TYPE_AV) { } else if (type == TOX_CONFERENCE_TYPE_AV) {
#ifdef AUDIO #ifdef AUDIO
conferencenum = toxav_join_av_groupchat(m, self->num, (const uint8_t *) conferencekey, length, audio_conference_callback, NULL); conferencenum = toxav_join_av_groupchat(m, self->num, (const uint8_t *) conferencekey, length,
audio_conference_callback, NULL);
if (conferencenum == (uint32_t) -1) { if (conferencenum == (uint32_t) -1) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Audio conference instance failed to initialize"); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Audio conference instance failed to initialize");

View File

@ -780,6 +780,7 @@ static bool conference_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr)
for (uint32_t i = 0; i < chat->num_peers; ++i) { for (uint32_t i = 0; i < chat->num_peers; ++i) {
complete_strs[i] = (const char *) chat->name_list[i].pubkey_str; complete_strs[i] = (const char *) chat->name_list[i].pubkey_str;
} }
diff = complete_line(self, complete_strs, chat->num_peers); diff = complete_line(self, complete_strs, chat->num_peers);
} }