mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Returned media to messages with credits invoice.
This commit is contained in:
parent
1d3110228d
commit
923aaec085
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#include "history/view/media/history_view_invoice.h"
|
#include "history/view/media/history_view_invoice.h"
|
||||||
|
|
||||||
#include "boxes/send_credits_box.h" // IsCreditsInvoice.
|
|
||||||
#include "lang/lang_keys.h"
|
#include "lang/lang_keys.h"
|
||||||
#include "history/view/history_view_element.h"
|
#include "history/view/history_view_element.h"
|
||||||
#include "history/view/history_view_cursor_state.h"
|
#include "history/view/history_view_cursor_state.h"
|
||||||
|
@ -35,7 +34,7 @@ Invoice::Invoice(
|
||||||
}
|
}
|
||||||
|
|
||||||
void Invoice::fillFromData(not_null<Data::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) {
|
if (invoice->photo && !isCreditsCurrency) {
|
||||||
const auto spoiler = false;
|
const auto spoiler = false;
|
||||||
_attach = std::make_unique<Photo>(
|
_attach = std::make_unique<Photo>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue