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(),