From d6abf76a279e45c21c4644b1bf571b1a95948b55 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Wed, 23 Jan 2019 02:41:58 -0800 Subject: [PATCH] fix(groups): correctly show peers in the call after joining call Fix #5506 --- src/widget/form/groupchatform.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp index 60ad0a5d3..91202d8a9 100644 --- a/src/widget/form/groupchatform.cpp +++ b/src/widget/form/groupchatform.cpp @@ -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(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)