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:
parent
ec07fd7291
commit
d6abf76a27
@ -467,17 +467,8 @@ void GroupChatForm::onCallClicked()
|
|||||||
|
|
||||||
GenericNetCamView* GroupChatForm::createNetcam()
|
GenericNetCamView* GroupChatForm::createNetcam()
|
||||||
{
|
{
|
||||||
GroupNetCamView* view = new GroupNetCamView(group->getId(), this);
|
// leave view empty, it will pe populated once we receive audio from peers
|
||||||
|
return 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupChatForm::keyPressEvent(QKeyEvent* ev)
|
void GroupChatForm::keyPressEvent(QKeyEvent* ev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user