From 923aaec085cd10bd3dc87675307f3c811b489d44 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 24 May 2024 20:46:23 +0300 Subject: [PATCH] Returned media to messages with credits invoice. --- .../SourceFiles/history/view/media/history_view_invoice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_invoice.cpp b/Telegram/SourceFiles/history/view/media/history_view_invoice.cpp index 65987e6bb..ace70246a 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_invoice.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_invoice.cpp @@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "history/view/media/history_view_invoice.h" -#include "boxes/send_credits_box.h" // IsCreditsInvoice. #include "lang/lang_keys.h" #include "history/view/history_view_element.h" #include "history/view/history_view_cursor_state.h" @@ -35,7 +34,7 @@ Invoice::Invoice( } void Invoice::fillFromData(not_null invoice) { - const auto isCreditsCurrency = Ui::IsCreditsInvoice(_parent->data()); + const auto isCreditsCurrency = false; if (invoice->photo && !isCreditsCurrency) { const auto spoiler = false; _attach = std::make_unique(