mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix group call bar in legacy groups.
This commit is contained in:
parent
2fb220985a
commit
7a07acb124
1 changed files with 3 additions and 3 deletions
|
@ -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<HistoryView::GroupCallTracker>(
|
||||
channel);
|
||||
peer);
|
||||
_groupCallBar = std::make_unique<Ui::GroupCallBar>(
|
||||
this,
|
||||
_groupCallTracker->content(),
|
||||
|
|
Loading…
Add table
Reference in a new issue