Browse Source

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

Fix #5506
reviewable/pr5512/r2
Anthony Bilinski 7 years ago
parent
commit
d6abf76a27
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 13
      src/widget/form/groupchatform.cpp

13
src/widget/form/groupchatform.cpp

@ -467,17 +467,8 @@ void GroupChatForm::onCallClicked() @@ -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)

Loading…
Cancel
Save