2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix creating group calls.

This commit is contained in:
John Preston
2021-04-30 22:04:12 +04:00
parent d9aa660253
commit 2e400d88d3
5 changed files with 40 additions and 30 deletions

View File

@@ -722,8 +722,7 @@ void Panel::refreshLeftButton() {
&st::groupCallVideoActiveSmall);
_video->show();
_video->setClickedCallback([=] {
_call->toggleVideo(_call->outgoingCameraTrack()->state()
!= Webrtc::VideoState::Active);
_call->toggleVideo(!_call->isCameraSharing());
});
_video->setText(tr::lng_group_call_video());
_video->setColorOverrides(_mute->colorOverrides());
@@ -912,6 +911,9 @@ void Panel::setupMembers() {
_startsWhen.destroy();
_members.create(widget(), _call);
setupPinnedVideo();
_members->setMode(_mode);
_members->show();
_members->desiredHeightValue(
@@ -946,8 +948,6 @@ void Panel::setupMembers() {
addMembers();
}
}, _callLifetime);
setupPinnedVideo();
}
void Panel::raiseControls() {
@@ -1550,7 +1550,9 @@ bool Panel::updateMode() {
if (_members) {
_members->setMode(mode);
}
_pinnedVideo->setVisible(mode == PanelMode::Wide);
if (_pinnedVideo) {
_pinnedVideo->setVisible(mode == PanelMode::Wide);
}
refreshControlsBackground();
updateControlsGeometry();
return true;