mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix view giveaway details button in forwards.
This commit is contained in:
parent
d5429e769f
commit
00db325e91
2 changed files with 7 additions and 0 deletions
|
@ -2955,6 +2955,10 @@ void Message::refreshDataIdHook() {
|
||||||
if (base::take(_fastReplyLink)) {
|
if (base::take(_fastReplyLink)) {
|
||||||
_fastReplyLink = fastReplyLink();
|
_fastReplyLink = fastReplyLink();
|
||||||
}
|
}
|
||||||
|
if (_viewButton) {
|
||||||
|
_viewButton = nullptr;
|
||||||
|
updateViewButtonExistence();
|
||||||
|
}
|
||||||
if (_comments) {
|
if (_comments) {
|
||||||
_comments->link = nullptr;
|
_comments->link = nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,9 @@ inline auto WebPageToPhrase(not_null<WebPageData*> webpage) {
|
||||||
if (const auto giveaway = media->giveaway()) {
|
if (const auto giveaway = media->giveaway()) {
|
||||||
const auto peer = media->parent()->history()->peer;
|
const auto peer = media->parent()->history()->peer;
|
||||||
const auto messageId = media->parent()->id;
|
const auto messageId = media->parent()->id;
|
||||||
|
if (media->parent()->isSending() || media->parent()->hasFailed()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
const auto info = *giveaway;
|
const auto info = *giveaway;
|
||||||
return std::make_shared<LambdaClickHandler>([=](
|
return std::make_shared<LambdaClickHandler>([=](
|
||||||
ClickContext context) {
|
ClickContext context) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue