2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Added ability to display subscription info in ReceiptCreditsBox.

This commit is contained in:
23rd
2024-08-09 23:49:09 +03:00
committed by John Preston
parent 4760337958
commit 32e8ed93e2
10 changed files with 135 additions and 41 deletions

View File

@@ -150,11 +150,14 @@ void Credits::setupSubscriptions(not_null<Ui::VerticalLayout*> container) {
object_ptr<Ui::VerticalLayout>(inner)));
const auto controller = _controller->parentController();
const auto entryClicked = [=](const Data::CreditsHistoryEntry &e) {
const auto entryClicked = [=](
const Data::CreditsHistoryEntry &e,
const Data::SubscriptionEntry &s) {
controller->uiShow()->show(Box(
ReceiptCreditsBox,
controller,
e));
e,
s));
};
Info::Statistics::AddCreditsHistoryList(
@@ -280,11 +283,14 @@ void Credits::setupHistory(not_null<Ui::VerticalLayout*> container) {
}, inner->lifetime());
const auto controller = _controller->parentController();
const auto entryClicked = [=](const Data::CreditsHistoryEntry &e) {
const auto entryClicked = [=](
const Data::CreditsHistoryEntry &e,
const Data::SubscriptionEntry &s) {
controller->uiShow()->show(Box(
ReceiptCreditsBox,
controller,
e));
e,
s));
};
Info::Statistics::AddCreditsHistoryList(