2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added sub-button to top of sponsored messages that can be reported.

This commit is contained in:
23rd
2024-03-29 05:19:37 +03:00
committed by John Preston
parent 24c1151101
commit 8718d94e7d
6 changed files with 117 additions and 0 deletions

View File

@@ -324,4 +324,10 @@ void ShowSponsored(
menu->popup(QCursor::pos());
}
void ShowSponsoredAbout(std::shared_ptr<ChatHelpers::Show> show) {
show->showBox(Box([=](not_null<Ui::GenericBox*> box) {
AboutBox(box, &show->session());
}));
}
} // namespace Menu

View File

@@ -24,4 +24,6 @@ void ShowSponsored(
std::shared_ptr<ChatHelpers::Show> show,
not_null<HistoryItem*> item);
void ShowSponsoredAbout(std::shared_ptr<ChatHelpers::Show> show);
} // namespace Menu