1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(core): remove pgc code

This code was needed for the pgc implementation, but is not needed for
minipgc
This commit is contained in:
sudden6 2018-10-18 12:31:21 +02:00
parent e0bcad21b4
commit 10a4b249bb
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -460,21 +460,11 @@ void Core::onGroupInvite(Tox* tox, uint32_t friendId, Tox_Conference_Type type,
switch (type) { switch (type) {
case TOX_CONFERENCE_TYPE_TEXT: case TOX_CONFERENCE_TYPE_TEXT:
qDebug() << QString("Text group invite by %1").arg(friendId); qDebug() << QString("Text group invite by %1").arg(friendId);
if (friendId == UINT32_MAX) {
// Rejoining existing (persistent) conference after disconnect and reconnect.
tox_conference_join(tox, friendId, cookie, length, nullptr);
return;
}
emit core->groupInviteReceived(inviteInfo); emit core->groupInviteReceived(inviteInfo);
break; break;
case TOX_CONFERENCE_TYPE_AV: case TOX_CONFERENCE_TYPE_AV:
qDebug() << QString("AV group invite by %1").arg(friendId); qDebug() << QString("AV group invite by %1").arg(friendId);
if (friendId == UINT32_MAX) {
// Rejoining existing (persistent) AV conference after disconnect and reconnect.
toxav_join_av_groupchat(tox, friendId, cookie, length, CoreAV::groupCallCallback, core);
return;
}
emit core->groupInviteReceived(inviteInfo); emit core->groupInviteReceived(inviteInfo);
break; break;