mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
fix: make it build
This commit is contained in:
parent
e572da4927
commit
353e9adec1
5 changed files with 14 additions and 4 deletions
|
@ -156,7 +156,7 @@ void AddOpenChannelAction(PeerData *peerData,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto chat = peerData->asMegagroup()->linkedChat();
|
const auto chat = peerData->asMegagroup()->discussionLink();
|
||||||
if (!chat) {
|
if (!chat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "history/history.h"
|
#include "history/history.h"
|
||||||
#include "main/main_session.h"
|
#include "main/main_session.h"
|
||||||
|
|
||||||
|
// AyuGram includes
|
||||||
|
#include "ayu/ayu_settings.h"
|
||||||
|
|
||||||
|
|
||||||
namespace Data {
|
namespace Data {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -111,6 +115,12 @@ void PromoSuggestions::refreshTopPromotion() {
|
||||||
|= _dismissedSuggestions.emplace(qs(suggestion)).second;
|
|= _dismissedSuggestions.emplace(qs(suggestion)).second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto& settings = AyuSettings::getInstance();
|
||||||
|
if (settings.disableAds) {
|
||||||
|
setTopPromoted(nullptr, QString(), QString());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (const auto peer = data.vpeer()) {
|
if (const auto peer = data.vpeer()) {
|
||||||
const auto peerId = peerFromMTP(*peer);
|
const auto peerId = peerFromMTP(*peer);
|
||||||
const auto history = _session->data().history(peerId);
|
const auto history = _session->data().history(peerId);
|
||||||
|
|
|
@ -4776,7 +4776,7 @@ void HistoryWidget::toggleMuteUnmute() {
|
||||||
|
|
||||||
void HistoryWidget::goToDiscussionGroup() {
|
void HistoryWidget::goToDiscussionGroup() {
|
||||||
const auto channel = _peer ? _peer->asChannel() : nullptr;
|
const auto channel = _peer ? _peer->asChannel() : nullptr;
|
||||||
const auto chat = channel ? channel->linkedChat() : nullptr;
|
const auto chat = channel ? channel->discussionLink() : nullptr;
|
||||||
if (!chat) {
|
if (!chat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 09f353539861c5fe236e56c0bf97c01c469e4cbc
|
Subproject commit 5a0421e4623f6e2da58620f3818ae19df9309b43
|
|
@ -1 +1 @@
|
||||||
Subproject commit 30a34e567feae0af751d7f713d33a60497c673c2
|
Subproject commit 9523ff72aea22f760c9b99e98b489ced316e0cb8
|
Loading…
Add table
Reference in a new issue