Returned media to messages with credits invoice.

This commit is contained in:
23rd 2024-05-24 20:46:23 +03:00 committed by John Preston
parent 1d3110228d
commit 923aaec085

View file

@ -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<Data::Invoice*> invoice) {
const auto isCreditsCurrency = Ui::IsCreditsInvoice(_parent->data());
const auto isCreditsCurrency = false;
if (invoice->photo && !isCreditsCurrency) {
const auto spoiler = false;
_attach = std::make_unique<Photo>(