fix: make it build

This commit is contained in:
AlexeyZavar 2025-05-19 00:32:36 +03:00
parent e572da4927
commit 353e9adec1
5 changed files with 14 additions and 4 deletions

View file

@ -156,7 +156,7 @@ void AddOpenChannelAction(PeerData *peerData,
return;
}
const auto chat = peerData->asMegagroup()->linkedChat();
const auto chat = peerData->asMegagroup()->discussionLink();
if (!chat) {
return;
}

View file

@ -19,6 +19,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "main/main_session.h"
// AyuGram includes
#include "ayu/ayu_settings.h"
namespace Data {
namespace {
@ -111,6 +115,12 @@ void PromoSuggestions::refreshTopPromotion() {
|= _dismissedSuggestions.emplace(qs(suggestion)).second;
}
const auto& settings = AyuSettings::getInstance();
if (settings.disableAds) {
setTopPromoted(nullptr, QString(), QString());
return;
}
if (const auto peer = data.vpeer()) {
const auto peerId = peerFromMTP(*peer);
const auto history = _session->data().history(peerId);

View file

@ -4776,7 +4776,7 @@ void HistoryWidget::toggleMuteUnmute() {
void HistoryWidget::goToDiscussionGroup() {
const auto channel = _peer ? _peer->asChannel() : nullptr;
const auto chat = channel ? channel->linkedChat() : nullptr;
const auto chat = channel ? channel->discussionLink() : nullptr;
if (!chat) {
return;
}

@ -1 +1 @@
Subproject commit 09f353539861c5fe236e56c0bf97c01c469e4cbc
Subproject commit 5a0421e4623f6e2da58620f3818ae19df9309b43

@ -1 +1 @@
Subproject commit 30a34e567feae0af751d7f713d33a60497c673c2
Subproject commit 9523ff72aea22f760c9b99e98b489ced316e0cb8