From 7a07acb124f2137e201e9fe24b7045eddb782a3a Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 18 Dec 2020 19:21:57 +0400 Subject: [PATCH] Fix group call bar in legacy groups. --- Telegram/SourceFiles/history/history_widget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 19934e733..33da747a7 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -5407,14 +5407,14 @@ void HistoryWidget::refreshPinnedBarButton(bool many) { void HistoryWidget::setupGroupCallTracker() { Expects(_history != nullptr); - const auto channel = _history->peer->asChannel(); - if (!channel) { + const auto peer = _history->peer; + if (!peer->asMegagroup() && !peer->asChat()) { _groupCallTracker = nullptr; _groupCallBar = nullptr; return; } _groupCallTracker = std::make_unique( - channel); + peer); _groupCallBar = std::make_unique( this, _groupCallTracker->content(),