From aa5e8422bf67a74bd79201da5d28a333c6e2feaf Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 15 Dec 2020 14:23:40 +0400 Subject: [PATCH] Fix input device edit in Calls Settings. Fixes #9930. --- Telegram/SourceFiles/calls/calls_group_members.cpp | 4 +--- Telegram/SourceFiles/settings/settings_calls.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/calls/calls_group_members.cpp b/Telegram/SourceFiles/calls/calls_group_members.cpp index 64922c5e66..6316eb2f9c 100644 --- a/Telegram/SourceFiles/calls/calls_group_members.cpp +++ b/Telegram/SourceFiles/calls/calls_group_members.cpp @@ -434,14 +434,12 @@ auto Row::generatePaintUserpicCallback() -> PaintRoundImageCallback { return [=](Painter &p, int x, int y, int outerWidth, int size) mutable { if (_blobsAnimation) { const auto shift = QPointF(x + size / 2., y + size / 2.); - const auto speaking = _speakingAnimation.value( - _speaking ? 1. : 0.); auto hq = PainterHighQualityEnabler(p); p.translate(shift); const auto brush = anim::brush( st::groupCallMemberInactiveStatus, st::groupCallMemberActiveStatus, - speaking); + _speakingAnimation.value(_speaking ? 1. : 0.)); _blobsAnimation->blobs.paint(p, brush); p.translate(-shift); p.setOpacity(1.); diff --git a/Telegram/SourceFiles/settings/settings_calls.cpp b/Telegram/SourceFiles/settings/settings_calls.cpp index 7118f4139d..1d4b10c4bf 100644 --- a/Telegram/SourceFiles/settings/settings_calls.cpp +++ b/Telegram/SourceFiles/settings/settings_calls.cpp @@ -204,7 +204,7 @@ void Calls::setupContent() { ), st::settingsButton )->addClickHandler([=] { - Ui::show(ChooseAudioOutputBox(crl::guard(this, [=]( + Ui::show(ChooseAudioInputBox(crl::guard(this, [=]( const QString &id, const QString &name) { _inputNameStream.fire_copy(name);