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

fix(groups): correctly show peers in the call after joining call

Fix #5506
This commit is contained in:
Anthony Bilinski 2019-01-23 02:41:58 -08:00
parent ec07fd7291
commit d6abf76a27
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -467,17 +467,8 @@ void GroupChatForm::onCallClicked()
GenericNetCamView* GroupChatForm::createNetcam()
{
GroupNetCamView* view = new GroupNetCamView(group->getId(), this);
const auto& names = group->getPeerList();
const auto ownPk = Core::getInstance()->getSelfPublicKey();
for (const auto& peerPk : names.keys()) {
if (peerPk != ownPk) {
static_cast<GroupNetCamView*>(view)->addPeer(peerPk, names.find(peerPk).value());
}
}
return view;
// leave view empty, it will pe populated once we receive audio from peers
return new GroupNetCamView(group->getId(), this);
}
void GroupChatForm::keyPressEvent(QKeyEvent* ev)