From aebb40dc1e8789bfda043b95113de49381fb1f9b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 21 Dec 2017 10:50:35 +0400 Subject: [PATCH] Fix volume control disappearing in audio player. --- Telegram/SourceFiles/mainwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 8c4a8441e..b9dc239db 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1756,7 +1756,9 @@ void MainWidget::createPlayer() { } if (!_player) { _player.create(this); - _player->heightValue() + rpl::merge( + _player->heightValue() | rpl::map([] { return true; }), + _player->shownValue()) | rpl::start_with_next( [this] { playerHeightUpdated(); }, lifetime());