mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Removed unused Ui::IsCreditsInvoice.
This commit is contained in:
@@ -288,10 +288,4 @@ void SendCreditsBox(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsCreditsInvoice(not_null<HistoryItem*> item) {
|
|
||||||
const auto media = item->media();
|
|
||||||
const auto invoice = media ? media->invoice() : nullptr;
|
|
||||||
return invoice && (invoice->currency == "XTR");
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
@@ -21,6 +21,4 @@ void SendCreditsBox(
|
|||||||
not_null<Ui::GenericBox*> box,
|
not_null<Ui::GenericBox*> box,
|
||||||
std::shared_ptr<Payments::CreditsFormData> data);
|
std::shared_ptr<Payments::CreditsFormData> data);
|
||||||
|
|
||||||
[[nodiscard]] bool IsCreditsInvoice(not_null<HistoryItem*> item);
|
|
||||||
|
|
||||||
} // namespace Ui
|
} // namespace Ui
|
||||||
|
Reference in New Issue
Block a user